Skip to content

AfromB example fails with casting errors with Numpy 1.10.1 #51

@Quasimondo

Description

@Quasimondo

I am getting a casting error when trying to run the afromb example:

/home/ubuntu/anaconda/lib/python2.7/site-packages/echonest/remix/audio.py in mix(dataA, dataB, mix)
824 else:
825 newdata = AudioData(ndarray=dataB.data, sampleRate=dataB.sampleRate, numChannels=dataB.numChannels, defer=False)
--> 826 newdata.data *= 1 - float(mix)
827 newdata.data[:dataA.endindex] += dataA.data[:] * float(mix)
828 return newdata

TypeError: Cannot cast ufunc multiply output from dtype('float64') to dtype('int16') with casting rule 'same_kind'

which looks very similar to the closed issue #13

I'm using an Anaconda Python 2.7 install which might contribute to the problem, though other examples work fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions