Skip to content

Commit

Permalink
line that updates header keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
s-goldman committed Oct 25, 2023
1 parent fc56a37 commit 7b51cc3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drizzlepac/haputils/processing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ def refine_product_headers(product, total_obj_list):
# Re-format ACS filter specification
if phdu['instrume'] == 'ACS':
phdu['filter'] = get_acs_filters(hdu, delimiter=';')

# WFPC2 update aperture if in poller file
if total_obj_list[0].aperture != 'empty_aperture':
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

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

0 comments on commit 7b51cc3

Please sign in to comment.