Skip to content

Commit

Permalink
set bounding box to None to avoid layer cropping
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Dec 13, 2022
1 parent 17fe3a8 commit 94e00d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ Cubeviz
Imviz
^^^^^

- Fixes cropped image layer with WCS-linking without fast-approximation. [#1908]

Mosviz
^^^^^^

Expand Down
2 changes: 2 additions & 0 deletions jdaviz/configs/imviz/plugins/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ def _parse_image(app, file_obj, data_label, ext=None):
data_iter = get_image_data_iterator(app, file_obj, data_label, ext=ext)

for data, data_label in data_iter:
if data.coords is not None:
data.coords.bounding_box = None
data_label = app.return_data_label(data_label, alt_name="image_data")
app.add_data(data, data_label)

Expand Down

0 comments on commit 94e00d6

Please sign in to comment.