Skip to content

Commit

Permalink
stop pipeline early on a saturated exposure
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Nov 15, 2024
1 parent c06e445 commit 7b4ccf5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion romancal/pipeline/exposure_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ def process(self, input):
# Return fully saturated image file (stopping pipeline)
log.info("All pixels are saturated. Returning a zeroed-out image.")

# if is_fully_saturated(result):
# Set all subsequent steps to skipped
for step_str in [
"assign_wcs",
Expand All @@ -110,6 +109,11 @@ def process(self, input):
"tweakreg",
]:
result.meta.cal_step[step_str] = "SKIPPED"

# Stop at this point and returned only the first model
# as a list to match prior behavior
lib.shelve(result, 0)
return [result]
else:
result = self.refpix(result)
result = self.linearity(result)
Expand Down

0 comments on commit 7b4ccf5

Please sign in to comment.