I am getting an error when creating a dataset with multipage tiffstacks larger than 2.0 GB.
I am running:
`dataset = sima.ImagingDataset(sequences, simafolder)`
And the error is:
`File "C:...lib\site-packages\sima\imaging.py", line 142, in __init__
str(x) for x in range(self.frame_shape[-1])]
File "C:...lib\site-packages\sima\imaging.py", line 209, in frame_shape
self._frame_shape = self.sequences[0].shape[1:]
File "C:...lib\site-packages\sima\sequence.py", line 167, in shape
return (len(self),) + self._get_frame(0).shape
File "C:...lib\site-packages\sima\sequence.py", line 558, in __len__
self._len = sum(1 for _ in self)
File "C:...lib\site-packages\sima\sequence.py", line 558, in <genexpr>
self._len = sum(1 for _ in self)
File "C:...lib\site-packages\sima\sequence.py", line 509, in __iter__
for _ in range(self._num_planes)], 0)
File "C:...lib\site-packages\future\builtins\newnext.py", line 62, in newnext
iterator.__class__.__name__))
TypeError: 'generator' object is not an iterator`
So I guess it is having issues getting the sequences shape.
If I compress the tiff file to be under 2GB (or cut frames to make it under 2GB) it works fine, but as soon as it is 2.01GB it breaks.
It is not a problem with pillow (as was discussed in a previous git issue) as I can load the tiffstack directly with `Image.open`, and pillow's limit appears to be 4-5GB anyway.
Additionally, if I load a compressed file (~1.3GB) sima can then motion correct it and exports it fine as an uncompressed 2.3GB file, so it seems to be specific to creating the initial dataset.
Compressing each tiff is incredibly time consuming so I would love to fix the error or find a work around. We also don't have a good viewer available for hd5 files yet and we need to be able to open and view the files in ImageJ, so that is also not really an option. Unfortunately I think we are stuck with making tiffs work for now.
Any help/ideas would be greatly appreciated.
Thanks,
Janelle