nel-lab / mesmerize-core

High level pandas-based API for batch analysis of Calcium Imaging data using CaImAn
Other
58 stars 15 forks source link

AttributeError: 'TiffPageSeries' object has no attribute 'levels' with demo data #289

Closed zhouyi0812 closed 5 months ago

zhouyi0812 commented 5 months ago

Hello, I tried the code with demo data, but still has the same error about .tiff

AttributeError Traceback (most recent call last) Cell In[19], line 1 ----> 1 a = LazyTiff(df.iloc[0].caiman.get_input_movie_path()) 2 a.shape

File ~\anaconda3\envs\mescore\lib\site-packages\mesmerize_core\arrays_tiff.py:27, in LazyTiff.init(self, path, shape) 13 """ 14 Lazy reader for tiff files. WIP, works for some tiff files. 15 Try tifffile.memmap first before trying LazyTiff (...) 23 manually set shape 24 """ 26 self._tif = tifffile.TiffFile(path) ---> 27 tiffseries = self._tif.series[0].levels[0] 29 if shape is None: 30 # TODO: someone who's better with tiff can help on this 31 if len(self._tif.pages) == 1:

AttributeError: 'TiffPageSeries' object has no attribute 'levels'

kushalkolar commented 5 months ago

Same answer as I gave you last time about tiff files.