Skip to content

Commit

Permalink
proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
ptahmose committed Jul 11, 2024
1 parent a9ece05 commit 93f2a50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pylibCZIrw/czi.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,8 @@ def _create_roi(

def _create_default_plane_coords(self) -> Dict[str, int]:
"""Generates a default plane coordinates dictionary with all indexes to 0.
This default plane coordinate contains all dimensions reported being used by
the CZI-document, but includes only dimensions for which the size is >1.
Returns
-------
Expand All @@ -651,7 +653,7 @@ def _create_default_plane_coords(self) -> Dict[str, int]:
return {
dim: 0
for dim, dim_index in self.CZI_DIMS.items()
if self._czi_reader.GetDimensionSize(_pylibCZIrw.DimensionIndex(dim_index)) > 0
if self._czi_reader.GetDimensionSize(_pylibCZIrw.DimensionIndex(dim_index)) > 1
}

def _create_plane_coords(
Expand Down

0 comments on commit 93f2a50

Please sign in to comment.