From 8e0c6292ca60b60b916bc71c1b602ee52ba0a318 Mon Sep 17 00:00:00 2001 From: TheSkyentist Date: Mon, 4 Mar 2024 10:20:57 +0100 Subject: [PATCH] Using and instead of & to get correct behaviour --- 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 33463c6b..799ee5c1 100644 --- a/grizli/jwst_utils.py +++ b/grizli/jwst_utils.py @@ -1001,7 +1001,7 @@ def exposure_oneoverf_correction(file, axis=None, thresholds=[5,4,3], erode_mask return None, 0 - if ('ONEFEXP' in im[0].header) & im[0].header['ONEFEXP'] & (not force_oneoverf): + if ('ONEFEXP' in im[0].header) and im[0].header['ONEFEXP'] and (not force_oneoverf): im.close() msg = 'exposure_oneoverf_correction: Skip, already corrected'