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

scipy logsumexp now located in scipy.special #364

Closed
henrysky opened this issue Nov 28, 2018 · 8 comments
Closed

scipy logsumexp now located in scipy.special #364

henrysky opened this issue Nov 28, 2018 · 8 comments
Assignees

Comments

@henrysky
Copy link
Contributor

galpy should use the new logsumexp import for scipy>=1.0.0 (scipy.special.logsumexp)

official msg:
logsumexp is deprecated! Importing logsumexp from scipy.misc is deprecated in scipy 1.0.0. Use scipy.special.logsumexp instead.

@jobovy jobovy self-assigned this Nov 28, 2018
@jobovy jobovy closed this as completed in dde3790 Nov 29, 2018
@jobovy
Copy link
Owner

jobovy commented Nov 29, 2018

Change seems to have happened in scipy v0.19; now fixed in galpy.

@ahriley
Copy link

ahriley commented Jun 27, 2019

Are there plans to fix this (or at least flag it in the docs) for the stable v1.4 (and maybe even earlier)?

For instance, running

conda create -n test galpy
conda activate test
python

and then

from galpy.orbit import Orbit

gives an ImportError: cannot import name 'logsumexp' from 'scipy.misc', which doesn't really agree with the Installation instructions saying that conda is the easiest way to install.

@jobovy
Copy link
Owner

jobovy commented Jun 28, 2019

The hope is to release a new version of galpy soon that will contain the fix, but that is probably a few months away. You're right that I should probably backport that fix since without it the entire conda build is broken (and I do have a maintenance/1.4.x branch for exactly this purpose). I might have some time next week to fix this. Do you happen to know whether there are any other similar v1.4 bugs that should be backported? I'll re-open the issue for now...

@jobovy jobovy reopened this Jun 28, 2019
@ahriley
Copy link

ahriley commented Jun 28, 2019

After fixing the imports in streamdf.py, FullOrbit.py, and DiskSCFPotential.py, everything seems to be fine.

There is an AstropyDeprecationWarning: astropy.extern.six will be removed in 4.0, use the six module directly if it is still needed when importing Orbit.

@jobovy
Copy link
Owner

jobovy commented Jun 28, 2019

Thanks! Not sure where that astropy warning is coming from, I don't think we use that library explicitly.

@jobovy
Copy link
Owner

jobovy commented Jul 6, 2019

A version 1.4.1 with a fix for this issue is now on conda, so the conda installation should work again. Please test! Thanks.

@ahriley
Copy link

ahriley commented Jul 8, 2019

everything working fine on my end!

@jobovy
Copy link
Owner

jobovy commented Jul 9, 2019

Great, thanks for checking!

@jobovy jobovy closed this as completed Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants