Skip to content

Commit

Permalink
Merge pull request #19 from grahamross123/fix-z-precision
Browse files Browse the repository at this point in the history
Fix bbox z precision
  • Loading branch information
bauerdavid authored Dec 19, 2024
2 parents 668ba58 + 90202e2 commit c0deada
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/napari_bbox/boundingbox/napari_0_4_15/bounding_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ def _update_displayed_data(self):

def _update_slice_key(self):
data_not_displayed = self.data[:, self.dims_not_displayed]
self.slice_key = np.round(
self.slice_key = np.array(
[
np.min(data_not_displayed, axis=0),
np.max(data_not_displayed, axis=0),
]
).astype('int')
)

@property
def ndisplay(self):
Expand Down

0 comments on commit c0deada

Please sign in to comment.