Skip to content

Commit 7dbab6c

Browse files
authored
Update ndcube/utils/cube.py
1 parent 41a4fac commit 7dbab6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ndcube/utils/cube.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ def get_crop_item_from_points(points, wcs, crop_by_values, keepdims):
173173
sliced_wcs = SlicedLowLevelWCS(low_level_wcs, slices=tuple(wcs_slice))
174174
sliced_point = np.array(point, dtype=object)[np.array(point_indices_with_inputs)]
175175
else:
176+
# Else, if all axes have at least one crop input, no need to slice the WCS.
176177
sliced_wcs, sliced_point = low_level_wcs, np.array(point, dtype=object)
177178
# Derive the array indices of the input point and place each index
178179
# in the list corresponding to its axis.

0 commit comments

Comments
 (0)