From b8cb761dea20c97220cb5fb2850c05c0aca238a9 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 12 Oct 2014 16:02:29 +0200 Subject: [PATCH] numpy 1.6.1 (ubuntu 12.04) does not allow named argument to astype --- oxtimelines/ffmpeg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oxtimelines/ffmpeg.py b/oxtimelines/ffmpeg.py index bf3007f..2b35d12 100644 --- a/oxtimelines/ffmpeg.py +++ b/oxtimelines/ffmpeg.py @@ -165,7 +165,7 @@ def audio(path, info=None, samplerate=48000, framerate=FPS): else: first = False 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 def rms(x, axis=None):