Skip to content

Commit

Permalink
Added comments and log info for both tabulated and standalone apertur…
Browse files Browse the repository at this point in the history
…e corrections.
  • Loading branch information
Timothy Brandt committed Jul 4, 2024
1 parent 04e5758 commit 9fd1d79
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jwst/extract_1d/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -3898,6 +3898,9 @@ def create_extraction(extract_ref_dict,
else:
wl = wavelength.min()

# Determine whether we have a tabulated aperature correction
# available to save time.

apcorr_available = False
if apcorr is not None:
if hasattr(apcorr, 'tabulated_correction'):
Expand Down Expand Up @@ -3936,8 +3939,9 @@ def create_extraction(extract_ref_dict,
try:
apcorr.tabulate_correction(spec.spec_table)
apcorr.apply_tabulated_correction(spec.spec_table)
log.info("Tabulating aperture correction for use in multiple integrations.")
except AttributeError:
log.info("Falling back on old .apply method of aperture correction.")
log.info("Computing aperture correction.")
apcorr.apply(spec.spec_table)

# Save previous ra, dec, wavelength in case we can reuse
Expand Down

0 comments on commit 9fd1d79

Please sign in to comment.