-
Notifications
You must be signed in to change notification settings - Fork 35
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
beast get_libfiles dependency issues (astropy.config.configuration.update_default_config and scipy.integrate.trapz) #824
Comments
Thanks for the issue. Both issues should be fixed in the dev version. This really tells me that a new pip installable release is needed. I will prioritize that for this week. If you wanted to get the dev version, go ahead and install it via github (i.e., |
Wonderful! Thank you for the quick response. I tested the dev version's installation following the exact installation instructions, and If it is at all helpful for future reference, I'm using scipy v1.14.1 and numpy 2.1.1, and below are the build dependences for scipy. Please let me know if there's anything else I can do to support getting the issue resolved.
|
In the BEAST installation docs, the library files need to be installed with
beast get_libfiles
. There are two hiccups for getting this script to run:ImportError: cannot import name 'update_default_config' from 'astropy.config.configuration'
The script utilizes
update_default_config
fromastropy.config.configuration
found in_astropy_init.py.
, which is deprecated as of astropy v6.0.0 as indicated in the official changelog of Astropy. Currently, the astropy version installed withpip install beast
is v6.1.4. I implemented a temporary fix of removing this from~/beast/lib/python3.11/site-packages/beast/_astropy_init.py
.ImportError: cannot import name 'trapz' from 'scipy.integrate'
scipy.integrate.trapz
is utilized inbeast.observationalmodel.phot
, which is deprecated as of scipy v1.14.0. Switching toscipy.integrate.trapezoid
in~/beast/lib/python3.11/site-packages/beast/observationmodel/phot.py
seems to have solved this issue.If deemed appropriate, I'm willing to create a pull request to update
scipy.integrate.trapz
toscipy.integrate.trapezoid
inphot.py
. A more permanent solution forupdate_default_config
is a bit beyond me though. Let me know your thoughts.The text was updated successfully, but these errors were encountered: