Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ Bug Fixes
Cubeviz
^^^^^^^

- Speed up loading of large cubes into cubeviz. [#3787]

Imviz
^^^^^

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,10 @@ def _extract_from_aperture(self, cube, uncert_cube, mask_cube, aperture,
wcs = cube.coords

# Filter out NaNs (False = good)
mask = np.logical_or(mask, np.isnan(flux))
if mask is None:
mask = np.isnan(flux)
else:
mask = np.logical_or(mask, np.isnan(flux))

# Also apply the cube's original mask array
if mask_cube:
Expand Down
Loading