Skip to content

Commit 58c64ef

Browse files
authored
fix bug in BoundingBox.to_slices (#429)
1 parent 8d6a67a commit 58c64ef

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

webknossos/webknossos/geometry/bounding_box.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def slice_array(self, array: np.ndarray) -> np.ndarray:
367367
def to_slices(self) -> Tuple[slice, slice, slice]:
368368
return np.index_exp[
369369
self.topleft.x : self.bottomright.x,
370-
self.topleft.z : self.bottomright.y,
370+
self.topleft.y : self.bottomright.y,
371371
self.topleft.z : self.bottomright.z,
372372
]
373373

webknossos/webknossos/geometry/mag.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,6 @@ def to_vec3_int(self) -> Vec3Int:
9999
def to_tuple(self) -> Tuple[int, int, int]:
100100
return self._mag.to_tuple()
101101

102-
def scaled_by(self, factor: int) -> "Mag":
103-
return Mag(self._mag * factor)
104-
105102
def __mul__(self, factor: int) -> "Mag":
106103
return Mag(self._mag * factor)
107104

0 commit comments

Comments
 (0)