Commit a55fa2bb authored by Jose Borreguero's avatar Jose Borreguero
Browse files

try returning the cropped arrays as copy, rather than a view of the original

parent edcf2c6d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ class crop(param.ParameterizedFunction):
        if arrays.ndim == 2:
            return arrays[top:bottom, left:right]
        elif arrays.ndim == 3:
            return arrays[:, top:bottom, left:right]
            return arrays[:, top:bottom, left:right].copy()  # return a copy instead of a view


def detect_bounds(