Skip to content

Commit

Permalink
header update only for WFPC2
Browse files Browse the repository at this point in the history
  • Loading branch information
s-goldman committed Oct 26, 2023
1 parent 7b51cc3 commit cb0e3bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drizzlepac/haputils/processing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,12 @@ def refine_product_headers(product, total_obj_list):
phdu['filter'] = get_acs_filters(hdu, delimiter=';')

# WFPC2 update aperture if in poller file
if total_obj_list[0].aperture != 'empty_aperture':
if (total_obj_list[0].aperture != 'empty_aperture') & (phdu['instrume'] =='WFPC2'):
log.info(f"Updating aperture header keyword from {phdu['aperture']} to {total_obj_list[0].aperture}")
phdu['aperture'] = total_obj_list[0].aperture

Check warning on line 176 in drizzlepac/haputils/processing_utils.py

View check run for this annotation

Codecov / codecov/patch

drizzlepac/haputils/processing_utils.py#L175-L176

Added lines #L175 - L176 were not covered by tests

else:
log.debug("Not updating aperture keyword.")

# Insure PHOT* keywords are always in SCI extension
for pkw in PHOT_KEYWORDS:
if pkw in phdu:
Expand Down

0 comments on commit cb0e3bb

Please sign in to comment.