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

add statewriter

parent af7df230
No related branches found
No related tags found
No related merge requests found
...@@ -263,6 +263,9 @@ class Pipeline(ProcessABC): ...@@ -263,6 +263,9 @@ class Pipeline(ProcessABC):
) )
bwriter = BabyWriter(filename) bwriter = BabyWriter(filename)
# State Writer to recover interrupted experiments
swriter = StateWriter(filename)
# Limit extraction parameters during run using the available channels in tiler # Limit extraction parameters during run using the available channels in tiler
av_channels = set((*tiler.channels, "general")) av_channels = set((*tiler.channels, "general"))
config["extraction"]["tree"] = { config["extraction"]["tree"] = {
...@@ -316,6 +319,10 @@ class Pipeline(ProcessABC): ...@@ -316,6 +319,10 @@ class Pipeline(ProcessABC):
# ) # )
t = perf_counter() t = perf_counter()
bwriter.write(seg, overwrite=["mother_assign"]) bwriter.write(seg, overwrite=["mother_assign"])
swriter.write(
data=runner.crawler.tracker_states,
overwrite=swriter.datatypes.keys(),
)
logging.debug(f"Timing:Writing-baby:{perf_counter() - t}s") logging.debug(f"Timing:Writing-baby:{perf_counter() - t}s")
# TODO add time-skipping for cases when the # TODO add time-skipping for cases when the
......
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