@@ -201,7 +201,7 @@ def _find_window(self, index: int) -> tuple[ImageArray, int, NormMeta | None]:
201
201
202
202
def _read_img_window (
203
203
self , img : ImageArray , ch_idx : list [int ], tz : int
204
- ) -> tuple [tuple [Tensor , ...], HCSStackIndex ]:
204
+ ) -> tuple [tuple [Tensor , ...], tuple [ str , int , int ] ]:
205
205
"""Read image window as tensor.
206
206
207
207
Parameters
@@ -215,7 +215,7 @@ def _read_img_window(
215
215
216
216
Returns
217
217
-------
218
- tuple[tuple[Tensor], HCSStackIndex ]
218
+ tuple[tuple[Tensor], tuple[str, int, int] ]
219
219
list of (C=1, Z, Y, X) image tensors,
220
220
tuple of image name, time index, and Z index
221
221
@@ -232,7 +232,7 @@ def _read_img_window(
232
232
[int (i ) for i in ch_idx ],
233
233
slice (z , z + self .z_window_size ),
234
234
].astype (np .float32 )
235
- return torch .from_numpy (data ).unbind (dim = 1 ), HCSStackIndex (img .name , t , z )
235
+ return torch .from_numpy (data ).unbind (dim = 1 ), (img .name , t , z )
236
236
237
237
def __len__ (self ) -> int :
238
238
"""Return total number of sliding windows across all FOVs."""
0 commit comments