Skip to content

Commit

Permalink
Truncate dark to the appropriate number of resultants. (spacetelescop…
Browse files Browse the repository at this point in the history
  • Loading branch information
schlafly authored Nov 21, 2023
2 parents d8bda78 + 906ce3f commit 29cbeda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion romancal/dark_current/dark_current_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def process(self, input):

# Do the dark correction
out_model = input_model
out_model.data -= dark_model.data
nresultants = len(input_model.meta.exposure["read_pattern"])
out_model.data -= dark_model.data[:nresultants]
out_model.pixeldq |= dark_model.dq
out_model.meta.cal_step.dark = "COMPLETE"

Expand Down

0 comments on commit 29cbeda

Please sign in to comment.