From d67ea3932f9fed3d364467cfb7a8ea561817f61e Mon Sep 17 00:00:00 2001 From: teald Date: Mon, 9 Sep 2024 17:35:55 -0700 Subject: [PATCH] =?UTF-8?q?chore(dragons=20updates):=20=F0=9F=93=A6=20Add?= =?UTF-8?q?=20index=20to=20points.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Covers DRAGONS commit f9145214996e3f0be4966b5293e948b5181af4ba. --- astrodata/wcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrodata/wcs.py b/astrodata/wcs.py index 30ffbd2e..24d852ea 100644 --- a/astrodata/wcs.py +++ b/astrodata/wcs.py @@ -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))