You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Replace deprecated np.fix with np.trunc in yulewalk #305
The function "fix" is deprecated
numpy.fix is deprecated. Use numpy.trunc instead.
Proposed change
Replace it with:
stop=int(np.trunc(ff[index+1] *npt))
np.fix and np.trunc both round towards zero, so this should preserve the current numerical behaviour while removing the warning and maintaining compatibility with future NumPy versions.
Environment
EEGPrep: 0.3.0
NumPy: 2.5.2
Python: 3.12
OS: Windows
Activity