Skip to content

Commit

Permalink
JP-3463: Add log message to dark step (spacetelescope#8425)
Browse files Browse the repository at this point in the history
  • Loading branch information
drlaw1558 authored Apr 23, 2024
1 parent b4c490b commit 13e0927
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ associations
- Match NIRSpec imprint observations to science exposures on mosaic tile location
and dither pointing, ``MOSTILNO`` and ``DITHPTIN``. [#8410]

dark_current
------------

- Add log info message when specifying an average_dark_current for noise calculations.
[#8425]

documentation
-------------

Expand Down
1 change: 1 addition & 0 deletions jwst/dark_current/dark_current_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def set_average_dark_current(self, input_model, dark_model):
"""
if self.average_dark_current is not None:
input_model.average_dark_current[:, :] = self.average_dark_current
self.log.info('Using Poisson noise from average dark current %s e-/sec', self.average_dark_current)
else:
# First prioritize a 2D average_dark_current, if defined in dark.
# If not present, apply scalar to datamodel array, if scalar is present.
Expand Down

0 comments on commit 13e0927

Please sign in to comment.