From 9b5ca0de1827b4eb60a709202c05859573d5b66b Mon Sep 17 00:00:00 2001 From: David Law Date: Tue, 16 Apr 2024 17:48:38 -0400 Subject: [PATCH 1/2] Add log message to dark step --- CHANGES.rst | 5 +++++ jwst/dark_current/dark_current_step.py | 1 + 2 files changed, 6 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index b912f10ceb..a7dd74182b 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -22,6 +22,11 @@ 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. + documentation ------------- diff --git a/jwst/dark_current/dark_current_step.py b/jwst/dark_current/dark_current_step.py index e5af9af395..2a0eddfc80 100755 --- a/jwst/dark_current/dark_current_step.py +++ b/jwst/dark_current/dark_current_step.py @@ -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. From 043c4a82aa8a6e1a25b42d3bc74493771ff55dd8 Mon Sep 17 00:00:00 2001 From: David Law Date: Tue, 16 Apr 2024 17:50:37 -0400 Subject: [PATCH 2/2] Update change log --- CHANGES.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.rst b/CHANGES.rst index a7dd74182b..a81fc2a80d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -26,6 +26,7 @@ dark_current ------------ - Add log info message when specifying an average_dark_current for noise calculations. + [#8425] documentation -------------