guiwitz / MorphoDynamics

A Python package for tracking the deformation of biological cells.
https://guiwitz.github.io/MorphoDynamics/mydocs/Introduction.html
BSD 3-Clause "New" or "Revised" License
6 stars 3 forks source link

AttributeError: 'NoneType' object has no attribute 'max_time' for .TIF and .tiff files #22

Closed mheydasch closed 2 years ago

mheydasch commented 3 years ago

When trying to load .tiff or .TIF, but not .tif files I still get the following error

---------------------------------------------------------------------------
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
~\miniconda3\envs\morphodynamics\lib\site-packages\morphodynamics\morpho_segmentation.py in initialize(self, b)
    298             )
    299 
--> 300         self.max_time_ipw.max = self.data.max_time
    301         self.max_time_ipw.min = 0
    302         self.param.max_time = self.data.max_time

AttributeError: 'NoneType' object has no attribute 'max_time'
guiwitz commented 3 years ago

Can you tell me which version of microfilm you are using?

mheydasch commented 3 years ago

The microfilm package had not been installed. After installation it is now version: microfilm 0.0.8. I closed the notebook, deactivated morphodynamics and reactivated it. The problem persists.

guiwitz commented 3 years ago

Can you send me an example dataset? This is very strange.

guiwitz commented 2 years ago

This should be now fixed by commit https://github.com/guiwitz/MorphoDynamics/commit/b174b0c3cf0fbfdaac0221f0de131542f15bb46a. The tif extension was badly parsed in some cases.