Skip to content

Commit

Permalink
Fix ImportError for factorial from scipy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Siegfried Gündert committed Aug 21, 2019
1 parent 0adb75e commit 7e8c6d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyfilterbank/gammatone.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
import numpy as np
from numpy.fft import rfft, rfftfreq
from numpy import (arange, array, pi, cos, exp, log10, ones_like, sqrt, zeros)
from scipy.misc import factorial
try:
from scipy.misc import factorial
except ImportError:
from scipy.special import factorial
from scipy.signal import lfilter


Expand Down

0 comments on commit 7e8c6d9

Please sign in to comment.