Skip to content

Commit

Permalink
Update zarr_array.py
Browse files Browse the repository at this point in the history
Similar patch to that done with resample_array
  • Loading branch information
rhoadesScholar committed Sep 19, 2024
1 parent ba7fa43 commit ef2a445
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dacapo/experiments/datasplits/datasets/arrays/zarr_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ def roi(self) -> Roi:
This method is used to return the region of interest of the array.
"""
if self.snap_to_grid is not None:
return self._daisy_array.roi.snap_to_grid(self.snap_to_grid, mode="shrink")
return self._daisy_array.roi.snap_to_grid(
np.lcm(self.voxel_size, self.snap_to_grid), mode="shrink"
)
else:
return self._daisy_array.roi

Expand Down

0 comments on commit ef2a445

Please sign in to comment.