From 37d449e87e230b87c099e277516b7ab7f309327e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Al=C3=A1n=20Mu=C3=B1oz?= <amuoz@ed.ac.uk> Date: Thu, 23 Jun 2022 18:59:18 +0100 Subject: [PATCH] add timepoints --- io/cells.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/io/cells.py b/io/cells.py index d16efbb9..5bce010d 100644 --- a/io/cells.py +++ b/io/cells.py @@ -94,6 +94,10 @@ class CellsHDF(Cells): def traps(self) -> list: return list(set(self["trap"])) + @property + def ntimepoints(self)->int: + return cells['timepoint'].max()+1 + @property def tile_size(self) -> int: if self._tile_size is None: -- GitLab