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

Handle deprecation of scipy.misc #664

Open
agriyakhetarpal opened this issue Dec 14, 2024 · 0 comments
Open

Handle deprecation of scipy.misc #664

agriyakhetarpal opened this issue Dec 14, 2024 · 0 comments
Labels
PR welcome Contributions towards resolving this issue are welcome

Comments

@agriyakhetarpal
Copy link
Collaborator

SciPy's age-old miscellaneous functions module has been deprecated since some time now (post 1.10, and we are at 1.14.1 at the time of writing). This raises a deprecation warning on import, coming from here:

import scipy.misc as osp_misc
from ..scipy import special
if hasattr(osp_misc, "logsumexp"):
logsumexp = special.logsumexp

and we have an example that uses the imread function from here:

from scipy.misc import imread

These functions will be removed in SciPy v2, and the latter one here isn't documented anymore. We should avoid importing these functions, since we can import logsumexp from scipy.special anyway. In the case of the example, we can use either Pillow's or scikit-image's implementations.

@agriyakhetarpal agriyakhetarpal added the PR welcome Contributions towards resolving this issue are welcome label Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR welcome Contributions towards resolving this issue are welcome
Projects
None yet
Development

No branches or pull requests

1 participant