Skip to content

Commit

Permalink
chore(dragons updates): 📦 Add index to points.
Browse files Browse the repository at this point in the history
Covers DRAGONS commit f9145214996e3f0be4966b5293e948b5181af4ba.
  • Loading branch information
teald committed Sep 10, 2024
1 parent 8508a6f commit d67ea39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astrodata/wcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def gwcs_to_fits(ndd, hdr=None):
points = m_this.points
if not (
ndim == 1
and np.allclose(points, np.arange(points.size))
and np.allclose(points, np.arange(points[0].size))
or ndim == 2
and np.allclose(points[0], np.arange(points[0].size))
and np.allclose(points[1], np.arange(points[1].size))
Expand Down

0 comments on commit d67ea39

Please sign in to comment.