Skip to content

Commit 94041ec

Browse files
in Badpixel_self cal add log message on number of pixels flagged (#8973)
2 parents 05488e6 + 5f2b0bc commit 94041ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jwst/badpix_selfcal/badpix_selfcal_step.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,12 @@ def process(self, input, selfcal_list=None, bkg_list=None):
123123
warnings.filterwarnings("ignore", category=RuntimeWarning, message="All-NaN")
124124
minimg = np.nanmin(np.asarray(selfcal_3d), axis=0)
125125
bad_indices = badpix_selfcal.badpix_selfcal(minimg, self.flagfrac_lower, self.flagfrac_upper, self.kernel_size, dispaxis)
126-
126+
127+
127128
# apply the flags to the science data
128129
input_sci = badpix_selfcal.apply_flags(input_sci, bad_indices)
129130

131+
self.log.info(f"Number of new bad pixels flagged: {len(bad_indices[0])}")
130132
# apply the flags to the background data to be passed to background sub step
131133
if len(bkg_list) > 0:
132134
for i, background_model in enumerate(bkg_list):

0 commit comments

Comments
 (0)