Skip to content

Commit

Permalink
fix bug in BoundingBox.to_slices (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
fm3 authored Sep 23, 2021
1 parent 8d6a67a commit 58c64ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion webknossos/webknossos/geometry/bounding_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]

Expand Down
3 changes: 0 additions & 3 deletions webknossos/webknossos/geometry/mag.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 58c64ef

Please sign in to comment.