diff --git a/webknossos/webknossos/geometry/bounding_box.py b/webknossos/webknossos/geometry/bounding_box.py index 185a28a28..40bef7114 100644 --- a/webknossos/webknossos/geometry/bounding_box.py +++ b/webknossos/webknossos/geometry/bounding_box.py @@ -367,7 +367,7 @@ def slice_array(self, array: np.ndarray) -> np.ndarray: def to_slices(self) -> Tuple[slice, slice, slice]: return np.index_exp[ self.topleft.x : self.bottomright.x, - self.topleft.z : self.bottomright.y, + self.topleft.y : self.bottomright.y, self.topleft.z : self.bottomright.z, ] diff --git a/webknossos/webknossos/geometry/mag.py b/webknossos/webknossos/geometry/mag.py index 1c7c3ea50..a16c594bb 100644 --- a/webknossos/webknossos/geometry/mag.py +++ b/webknossos/webknossos/geometry/mag.py @@ -99,9 +99,6 @@ def to_vec3_int(self) -> Vec3Int: def to_tuple(self) -> Tuple[int, int, int]: return self._mag.to_tuple() - def scaled_by(self, factor: int) -> "Mag": - return Mag(self._mag * factor) - def __mul__(self, factor: int) -> "Mag": return Mag(self._mag * factor)