Skip to content

Commit

Permalink
Using and instead of & to get correct behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSkyentist committed Apr 25, 2024
1 parent 0343a24 commit 8e0c629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grizli/jwst_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 8e0c629

Please sign in to comment.