Skip to content

Commit

Permalink
Add a warning message in Log to cube_build if not valid data is found…
Browse files Browse the repository at this point in the history
… on detector (#8220)
  • Loading branch information
jemorrison authored Jan 26, 2024
1 parent 87770e3 commit bddb39c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------

Expand Down
2 changes: 1 addition & 1 deletion jwst/cube_build/ifu_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bddb39c

Please sign in to comment.