Skip to content

Commit

Permalink
remove _
Browse files Browse the repository at this point in the history
  • Loading branch information
mzouink committed Apr 16, 2024
1 parent a413ac3 commit 20b967d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dacapo/experiments/datasplits/datasets/arrays/zarr_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def __init__(self, array_config):
self.name = array_config.name
self.file_name = array_config.file_name
self.dataset = array_config.dataset
self._mode = array_config.mode
self.mode = array_config.mode
self._attributes = self.data.attrs
self._axes = array_config._axes
self.snap_to_grid = array_config.snap_to_grid
Expand Down Expand Up @@ -363,9 +363,9 @@ def data(self) -> Any:
file_name = str(self.file_name)
# Zarr library does not detect the store for N5 datasets
if file_name.endswith(".n5"):
zarr_container = zarr.open(N5FSStore(str(file_name)), mode=self._mode)
zarr_container = zarr.open(N5FSStore(str(file_name)), mode=self.mode)
else:
zarr_container = zarr.open(str(file_name), mode=self._mode)
zarr_container = zarr.open(str(file_name), mode=self.mode)
return zarr_container[self.dataset]

def __getitem__(self, roi: Roi) -> np.ndarray:
Expand Down

0 comments on commit 20b967d

Please sign in to comment.