From 99dffb8d850b4dbd2f457c31444081adebb01424 Mon Sep 17 00:00:00 2001 From: Brett Date: Tue, 16 Apr 2024 15:44:45 -0400 Subject: [PATCH] only pre-compute combined_wcs if using gaia --- jwst/tweakreg/tweakreg_step.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jwst/tweakreg/tweakreg_step.py b/jwst/tweakreg/tweakreg_step.py index 2238541ec7..5ff3139274 100644 --- a/jwst/tweakreg/tweakreg_step.py +++ b/jwst/tweakreg/tweakreg_step.py @@ -247,7 +247,7 @@ def process(self, input): # the fiducial and search radius). # This is done prior to 'local' matching to be consistent with the # old code. - if align_to_abs_refcat: + if align_to_abs_refcat and self.abs_refcat.strip().upper() in SINGLE_GROUP_REFCAT: # FIXME should this be after 'local' alignment? combined_wcs = wcs_from_footprints( None,