Skip to content

Commit

Permalink
also write the chunks list
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Sep 16, 2024
1 parent 5cc52e3 commit 820c35a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/depiction_targeted_preproc/app_interface/dispatch_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 820c35a

Please sign in to comment.