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

Use numpy.float64 instead of deprecated numpy.float #83

Open
tjlcbakx opened this issue Dec 5, 2023 · 1 comment
Open

Use numpy.float64 instead of deprecated numpy.float #83

tjlcbakx opened this issue Dec 5, 2023 · 1 comment
Assignees
Labels
bug Something isn't working release Package release
Milestone

Comments

@tjlcbakx
Copy link

tjlcbakx commented Dec 5, 2023

File "", line 1, in
File "/Users/tombakx/opt/anaconda3/lib/python3.9/site-packages/deshima_sensitivity/plotting.py", line 66, in MDLF_simple
D2goal = spectrometer_sensitivity(**D2goal_input)
File "/Users/tombakx/opt/anaconda3/lib/python3.9/site-packages/deshima_sensitivity/simulator.py", line 359, in spectrometer_sensitivity
eta_atm = eta_atm_func(F=F_int, pwv=pwv, EL=EL)
File "/Users/tombakx/opt/anaconda3/lib/python3.9/site-packages/deshima_sensitivity/atmosphere.py", line 61, in eta_atm_func
eta_atm_func_zenith = eta_atm_interp(eta_atm_df)
File "/Users/tombakx/opt/anaconda3/lib/python3.9/site-packages/deshima_sensitivity/atmosphere.py", line 122, in eta_atm_interp
x = np.array(list(eta_atm_dataframe)[1:]).astype(np.float)
File "/Users/tombakx/opt/anaconda3/lib/python3.9/site-packages/numpy/init.py", line 324, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'float'.
np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

@astropenguin astropenguin self-assigned this Apr 13, 2024
@astropenguin astropenguin added the bug Something isn't working label Apr 13, 2024
@astropenguin astropenguin added this to the v0.5 milestone Apr 13, 2024
@astropenguin
Copy link
Member

Thank you @tjlcbakx for reporting this! I will fix this in deshima-sensitivity v0.4.2.

@astropenguin astropenguin changed the title np.float should become 'float' Use numpy.float64 instead of deprecated numpy.float Apr 13, 2024
@astropenguin astropenguin added the release Package release label Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working release Package release
Projects
Status: No status
Development

No branches or pull requests

2 participants