From f16d56eb153b20fa5825257b5345847b455ec42e Mon Sep 17 00:00:00 2001 From: William Moore Date: Thu, 9 Jan 2025 11:53:56 +0000 Subject: [PATCH] Check if timeIncrement is None --- omero_figure/omeroutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omero_figure/omeroutils.py b/omero_figure/omeroutils.py index a37041d2e..fb4ed8deb 100644 --- a/omero_figure/omeroutils.py +++ b/omero_figure/omeroutils.py @@ -73,7 +73,7 @@ def get_timestamps(conn, image): except Exception as error: print(f"An exception occured: {error}\n" "maybe the image has no 'timeIncrement' set") - if converted_value != 0: + if converted_value is not None and converted_value != 0: for i in range(image.getSizeT()): timemap[i] = i*converted_value