From bddb39c6efb2ec949a36398d21819de2abd2118b Mon Sep 17 00:00:00 2001 From: Jane Morrison Date: Fri, 26 Jan 2024 07:56:11 -0700 Subject: [PATCH] Add a warning message in Log to cube_build if not valid data is found on detector (#8220) --- CHANGES.rst | 5 +++++ jwst/cube_build/ifu_cube.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 5306503a3f..aa0f9b752c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -8,6 +8,11 @@ associations sub-pixel dithers, so that only exposures from other nod positions are used as background members in "spec2" associations. [#8184] +cube_build +---------- + +- Add a warning message to log if no valid data is found on the detector. [#8220] + documentation ------------- diff --git a/jwst/cube_build/ifu_cube.py b/jwst/cube_build/ifu_cube.py index 959112f9cc..0085d30153 100644 --- a/jwst/cube_build/ifu_cube.py +++ b/jwst/cube_build/ifu_cube.py @@ -1575,7 +1575,7 @@ def map_detector_to_outputframe(self, this_par1, num_good = len(good_data[0]) if num_good == 0: # This can occcur if all the pixels on the detector are marked DO_NOT_USE. - + log.warning(f'No valid pixels found on detector {input_model.meta.filename}') return coord1, coord2, corner_coord, wave, dwave, flux, err, \ slice_no, rois_det, roiw_det, weight_det, \ softrad_det, scalerad_det, x_det, y_det