From 112038a793f43df532aa66c28df35bb4c6c2b82d Mon Sep 17 00:00:00 2001 From: Leonardo Schwarz Date: Wed, 2 Oct 2024 15:09:08 +0200 Subject: [PATCH] consistent --- src/depiction_targeted_preproc/app_interface/collect_chunk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/depiction_targeted_preproc/app_interface/collect_chunk.py b/src/depiction_targeted_preproc/app_interface/collect_chunk.py index 2fa34ed..fa67286 100644 --- a/src/depiction_targeted_preproc/app_interface/collect_chunk.py +++ b/src/depiction_targeted_preproc/app_interface/collect_chunk.py @@ -24,9 +24,9 @@ def collect_chunk(workunit_ref: int | Path, chunk_dir: Path) -> None: "store_entry_path": f"WU{workunit_id}_result_{chunk_dir.name}.zip", } ] - result = {"outputs": outputs} + with (chunk_dir / "outputs.yml").open("w") as f: - yaml.safe_dump(result, f) + yaml.safe_dump({"outputs": outputs}, f) if __name__ == "__main__":