From 820c35a75974f8c1d4517056c4d6e5f4f60422c5 Mon Sep 17 00:00:00 2001 From: Leonardo Schwarz Date: Mon, 16 Sep 2024 11:00:00 +0200 Subject: [PATCH] also write the chunks list --- src/depiction_targeted_preproc/app_interface/dispatch_app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/depiction_targeted_preproc/app_interface/dispatch_app.py b/src/depiction_targeted_preproc/app_interface/dispatch_app.py index 4f66ba7..6cbe864 100644 --- a/src/depiction_targeted_preproc/app_interface/dispatch_app.py +++ b/src/depiction_targeted_preproc/app_interface/dispatch_app.py @@ -49,6 +49,11 @@ def dispatch_app(workunit_ref: int | Path, work_dir: Path) -> None: write_params(params_dict=params, file=chunk_dir / "params.yml") chunks.append(chunk_dir) + # TODO consider how to best handle this + with (work_dir / "chunks.yml").open("w") as f: + data = {"chunks": [str(chunk) for chunk in chunks]} + yaml.safe_dump(data, f) + def write_params(params_dict: dict, file: Path) -> None: with file.open("w") as f: