numpy 1.6.1 (ubuntu 12.04) does not allow named argument to astype
This commit is contained in:
parent
5e4f196084
commit
b8cb761dea
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ def audio(path, info=None, samplerate=48000, framerate=FPS):
|
||||||
else:
|
else:
|
||||||
first = False
|
first = False
|
||||||
audio = np.fromstring(data, dtype="int16")
|
audio = np.fromstring(data, dtype="int16")
|
||||||
audio = audio.reshape((len(audio)/channels,channels)).astype(dtype='float')
|
audio = audio.reshape((len(audio)/channels,channels)).astype('float')
|
||||||
yield audio
|
yield audio
|
||||||
|
|
||||||
def rms(x, axis=None):
|
def rms(x, axis=None):
|
||||||
|
|
Loading…
Reference in a new issue