Skip to content

Commit

Permalink
Direct backport of part of #1873
Browse files Browse the repository at this point in the history
Co-authored-by: Brett M. Morris <[email protected]>
  • Loading branch information
pllim and bmorris3 authored Nov 29, 2022
1 parent 31d751f commit d7ec0ab
Showing 1 changed file with 2 additions and 2 deletions.
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=float)
dec = np.array(footprint[1::2], dtype=float)

# Find center of slit
cra = (max(ra) + min(ra)) / 2
Expand Down

0 comments on commit d7ec0ab

Please sign in to comment.