Skip to content

Commit

Permalink
correct output format
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Sep 16, 2024
1 parent 9206eb6 commit a7daee8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/depiction_targeted_preproc/app_interface/run_chunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@
@app.default()
def run_chunk(chunk_dir: Path):
zip_file_path = run_workflow(sample_dir=chunk_dir)
results = [
outputs = [
{
"type": "bfabric_copy_resource",
"local_path": str(zip_file_path.absolute()),
"store_entry_path": zip_file_path.name,
}
]
result = {"outputs": outputs}
with (chunk_dir / "outputs.yml").open("w") as f:
yaml.safe_dump(results, f)
yaml.safe_dump(result, f)


if __name__ == "__main__":
Expand Down

0 comments on commit a7daee8

Please sign in to comment.