From 1667937f281a6c1d40890fb539f24b4c8c16ae08 Mon Sep 17 00:00:00 2001 From: TheSkyentist Date: Thu, 29 Feb 2024 19:18:37 +0100 Subject: [PATCH] Implemented skip apply_photom --- grizli/jwst_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grizli/jwst_utils.py b/grizli/jwst_utils.py index 5a417f3d..43f9bee2 100644 --- a/grizli/jwst_utils.py +++ b/grizli/jwst_utils.py @@ -461,7 +461,7 @@ def img_with_flat(input, verbose=True, overwrite=True, apply_photom=True, use_sk _opup = '' _ofilt = _hdu[0].header['OFILTER'] - if _opup.startswith('GR') | _ofilt.startswith('GR'): + if _opup.startswith('GR') | _ofilt.startswith('GR') | (not apply_photom): output = with_flat _photfile = None else: