Skip to content

Commit 985dc70

Browse files
authored
Merge pull request #11 from janelia-cellmap/refactor
3D dimensional metadata only (for now) TO DO: scale metadata dimensions with the dimensions of the array
2 parents e84e1c2 + d2f1b67 commit 985dc70

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/zarrify/formats/tiff_stack.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@ def __init__(
3838

3939
self.dtype = probe_image_arr.dtype
4040
self.shape = np.squeeze([len(self.stack_list)] + list(probe_image_arr.shape))
41-
self.ndim = len(self.shape)
42-
43-
# Scale metadata parameters to match data dimensionality
44-
self.metadata["axes"] = self.metadata["axes"][-self.ndim:]
45-
self.metadata["scale"] = self.metadata["scale"][-self.ndim:]
46-
self.metadata["translation"] = self.metadata["translation"][-self.ndim:]
47-
self.metadata["units"] = self.metadata["units"][-self.ndim:]
4841

4942
def write_tile_slab_to_zarr(
5043
self, chunk_num: int, zarray: zarr.Array, src_volume: list

0 commit comments

Comments
 (0)