JorritMontijn / zetapy

Python code implementing the ZETA-test
GNU General Public License v3.0
20 stars 7 forks source link

Outdated scipy gaussian import #15

Open wulfdewolf opened 1 month ago

wulfdewolf commented 1 month ago

The following files use: https://github.com/JorritMontijn/zetapy/blob/18333298bab40390d0f35868bcf0044204cabafb/zetapy/plot_dependencies.py#L13 https://github.com/JorritMontijn/zetapy/blob/18333298bab40390d0f35868bcf0044204cabafb/zetapy/legacy/dependencies.py#L7

In the latest stable scipy release v1.13.0 the gaussian function has moved to scipy.signal.windows.

So either the imports should become:

from scipy.signal import convolve
from scipy.signal.windows import gaussian

or an explicit scipy version should be set in the pip dependencies, v0.14.0 is the latest one I found that still has it the old way.

JorritMontijn commented 1 month ago

Thanks! I'll fix it when I next update the repo