Skip to content
Snippets Groups Projects
Commit 18925c8d authored by Alán Muñoz's avatar Alán Muñoz
Browse files

add support for segmentations in aliby<0.24

parent 5073a2f6
No related branches found
No related tags found
No related merge requests found
...@@ -268,12 +268,27 @@ class Pipeline(ProcessABC): ...@@ -268,12 +268,27 @@ class Pipeline(ProcessABC):
steps["tiler"] = Tiler.from_hdf5(image, filename) steps["tiler"] = Tiler.from_hdf5(image, filename)
s = Signal(filename) s = Signal(filename)
legacy_get_last_tp = (
{ # Function to support seg in ver < 0.24
"tiler": lambda f: f["trap_info/drifts"].shape[
0
]
- 1,
"baby": lambda f: f["cell_info/timepoint"][-1],
"extraction": lambda f: f[
"extraction/general/None/area/timepoint"
][-1],
}
)
for k, v in process_from.items(): for k, v in process_from.items():
if not ow[k]: if not ow[k]:
process_from[k] = f[ process_from[k] = f[
self.writer_groups[k][-1] self.writer_groups[k][-1]
].attrs.get("last_processed", -1) ].attrs.get(
"last_processed",
legacy_get_last_tp[k](f),
)
process_from[k] += 1 process_from[k] += 1
# get state array # get state array
if not ow["baby"]: if not ow["baby"]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment