Skip to content

Commit

Permalink
fix reporting xmax
Browse files Browse the repository at this point in the history
  • Loading branch information
nden committed May 10, 2021
1 parent e09228a commit db98b98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ extract_2d

- For WFSS removed setting srctype to UNKNOWN; added setting ``is_star`` in slitmeta [#5788]

- In NRC_TSGRISM mode replaced FITS WCS keywords with JWST specific ones. [#6005]

- Added ``specsys`` to slits. [#6005]

general
-------

Expand Down
2 changes: 1 addition & 1 deletion jwst/extract_2d/grisms.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def extract_tso_object(input_model,
log.info("Spectral trace extents: (xmin: {}, ymin: {}), "
"(xmax: {}, ymax: {})".format(xmin, ymin, xmax, ymax))
log.info("Extraction limits: (xmin: {}, ymin: {}), "
"(xmax: {}, ymax: {})".format(xmin_ext, ymin, xmax, ymax))
"(xmax: {}, ymax: {})".format(xmin_ext, ymin, xmax_ext, ymax))

# Cut out the subarray from the input data arrays
ext_data = input_model.data[..., ymin: ymax + 1, xmin_ext:xmax_ext + 1].copy()
Expand Down

0 comments on commit db98b98

Please sign in to comment.