-
- Downloads
Fix VisibleDeprecationWarnings reported in issue #2
As reported in Issue #2, many VisibleDeprecationWarnings were raised when running the tests of ltfatpy with a recent version of numpy. This is now solved by insuring that values used for indexes in numpy arrays are integers, either by using integer division (//) where needed, or by explicitely converting to integer type (changing np.func(X/2) to int(np.func(X/2))), or by using int as the array dtype.
Showing
- ltfatpy/comp/assert_sigreshape_pre.py 1 addition, 1 deletionltfatpy/comp/assert_sigreshape_pre.py
- ltfatpy/fourier/isevenfunction.py 3 additions, 3 deletionsltfatpy/fourier/isevenfunction.py
- ltfatpy/fourier/middlepad.py 23 additions, 23 deletionsltfatpy/fourier/middlepad.py
- ltfatpy/gabor/dgt.py 1 addition, 1 deletionltfatpy/gabor/dgt.py
- ltfatpy/gabor/gabframediag.py 1 addition, 1 deletionltfatpy/gabor/gabframediag.py
- ltfatpy/gabor/gabphasegrad.py 1 addition, 1 deletionltfatpy/gabor/gabphasegrad.py
- ltfatpy/gabor/instfreqplot.py 1 addition, 1 deletionltfatpy/gabor/instfreqplot.py
- ltfatpy/sigproc/firkaiser.py 1 addition, 1 deletionltfatpy/sigproc/firkaiser.py
- ltfatpy/sigproc/groupthresh.py 2 additions, 2 deletionsltfatpy/sigproc/groupthresh.py
- ltfatpy/sigproc/long2fir.py 2 additions, 2 deletionsltfatpy/sigproc/long2fir.py
Please register or sign in to comment