Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gaussian window import path for current SciPy releases #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

musicinmybrain
Copy link

Old: https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.signal.gaussian.html

New: https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.windows.gaussian.html#scipy.signal.windows.gaussian

Fixes:

$ python3 -m venv _e
$ . _e/bin/activate
(_e) $ pip install morphopy
(_e) $ morphopy --help
Traceback (most recent call last):
  File "/home/ben/fedora/devel/python-morphopy/_e/bin/morphopy", line 5, in <module>
    from morphopy.MorphoPy import main
  File "/home/ben/fedora/devel/python-morphopy/_e/lib64/python3.12/site-packages/morphopy/MorphoPy.py", line 13, in <module>
    from morphopy.computation import file_manager
  File "/home/ben/fedora/devel/python-morphopy/_e/lib64/python3.12/site-packages/morphopy/computation/file_manager.py", line 3, in <module>
    import morphopy.neurontree.NeuronTree as nt
  File "/home/ben/fedora/devel/python-morphopy/_e/lib64/python3.12/site-packages/morphopy/neurontree/NeuronTree.py", line 19, in <module>
    from morphopy.neurontree.utils import (
  File "/home/ben/fedora/devel/python-morphopy/_e/lib64/python3.12/site-packages/morphopy/neurontree/utils.py", line 8, in <module>
    from scipy.signal import convolve2d, gaussian
ImportError: cannot import name 'gaussian' from 'scipy.signal' (/home/ben/fedora/devel/python-morphopy/_e/lib64/python3.12/site-packages/scipy/signal/__init__.py)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant