SiggiGue / pyfilterbank

Implementing a fractional octave filterbank for python. Based on Numpy and CFFI.
107 stars 27 forks source link

Fixed division to yield integer type #9

Closed spors closed 6 years ago

spors commented 6 years ago

In the function butter_analog_sos the line d = zeros((L2, 2), dtype=double).astype(complex) has thrown an error in numpy 1.13.3 since the datatype of L2 was float.

spors commented 6 years ago

In order to stay compatible to Python 2.7 it might be advisable to include from __future__ import division