Skip to content

Commit

Permalink
Fixed bug in logic for spatial_only in subcube_slices_from_mask
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Apr 28, 2020
1 parent cad11f4 commit a03b5f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spectral_cube/dask_spectral_cube.py
Expand Up @@ -860,7 +860,7 @@ def subcube_slices_from_mask(self, region_mask, spatial_only=False):

slices = []
for axis in range(3):
if spatial_only:
if axis == 0 and spatial_only:
slices.append(slice(None))
continue
collapse_axes = tuple(index for index in range(3) if index != axis)
Expand Down

0 comments on commit a03b5f5

Please sign in to comment.