Commit ea209d3
committed
fix(ome_zarr): π strip leading singleton dims in TIFF-sequence chunks
_open_tiff_sequence assumed each file was a flat 2D (y, x) array, but
tifffile.imread reports leading singleton dims (e.g. (1, 1, y, x)) even
for a plain single-page TIFF in practice, so full_axes (seq axes + "yx")
didn't match arr.ndim and to_ome_zarr("*.tif", sequence_pattern=...)
raised "axes don't match array" on real acquisitions.
Read the first file's own shape up front and drop any leading
singleton dims before building the sequence axes string.1 parent 83f7739 commit ea209d3
2 files changed
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
728 | 740 | | |
| 741 | + | |
| 742 | + | |
729 | 743 | | |
730 | 744 | | |
731 | 745 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
126 | 132 | | |
127 | 133 | | |
128 | 134 | | |
129 | 135 | | |
130 | | - | |
| 136 | + | |
131 | 137 | | |
132 | 138 | | |
133 | 139 | | |
| |||
0 commit comments