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

numpy deprecation warning filter for v1.24.0 #1873

Merged
merged 13 commits into from
Nov 29, 2022
4 changes: 2 additions & 2 deletions jdaviz/configs/mosviz/plugins/slit_overlay/slit_overlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
def jwst_header_to_skyregion(header):
s_region = header['S_REGION']
footprint = s_region.split("POLYGON ICRS")[1].split()
ra = np.array(footprint[::2], dtype=np.float)
dec = np.array(footprint[1::2], dtype=np.float)
ra = np.array(footprint[::2], dtype=np.float_)
dec = np.array(footprint[1::2], dtype=np.float_)
pllim marked this conversation as resolved.
Show resolved Hide resolved

# Find center of slit
cra = (max(ra) + min(ra)) / 2
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ filterwarnings =
ignore:distutils Version classes are deprecated:DeprecationWarning
ignore:Passing unrecognized arguments to super:DeprecationWarning
ignore:.*With traitlets 4\.1, metadata should be set using the \.tag\(\) method:DeprecationWarning
ignore:.*(Deprecated NumPy 1.24):DeprecationWarning
ignore::DeprecationWarning:glue
ignore::DeprecationWarning:bqplot
ignore::DeprecationWarning:bqplot_image_gl
Expand Down