From ac85ae8caa71178c40d78fdcc612d6b4b10d2559 Mon Sep 17 00:00:00 2001 From: Gabriel Brammer Date: Fri, 17 Nov 2023 11:22:49 -0500 Subject: [PATCH] fix bug --- grizli/jwst_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/grizli/jwst_utils.py b/grizli/jwst_utils.py index 4a9d0bf3..afcb5660 100644 --- a/grizli/jwst_utils.py +++ b/grizli/jwst_utils.py @@ -3063,7 +3063,7 @@ def update_pure_parallel_wcs(file, fix_vtype='PARALLEL_PURE', verbose=True): im[1].header['CRVAL1'] = crval_fix[0] im[1].header['CRVAL2'] = crval_fix[1] im[1].header['PUREPWCS'] = True, 'WCS updated from PP query' - im[1].header['PUREPEXP'] = row['filename'], 'Prime exposure file' + im[1].header['PUREPEXP'] = gs['fileName'], 'FGS log file' im.flush() @@ -3320,6 +3320,8 @@ def compute_siaf_pa_offset(c1, c2, c2_pa=202.9918, swap_coordinates=True, verbos """ from astropy.coordinates import SkyCoord + import astropy.units as u + if not hasattr(c1, 'ra'): cat_coord = SkyCoord(*c1, unit='deg') else: