Skip to content

Commit

Permalink
Add assert for chunk files
Browse files Browse the repository at this point in the history
  • Loading branch information
endast committed Apr 30, 2024
1 parent 88d6dc8 commit 4418062
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deeprvat/deeprvat/associate.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,9 @@ def compute_burdens(
burden_files = ["burdens.zarr", "x.zarr", "y.zarr", "sample_ids.zarr"]

for burden_file in burden_files:
assert (Path(out_dir) / f"chunk_{chunk}" / burden_file).exists()
burden_file_path = Path(out_dir) / "chunks" / f"chunk_{chunk}" / burden_file
logger.debug(f"Checking if {burden_file_path} exists")
assert burden_file_path.exists()
else:
logger.info(f"All zarr files exists for chunk {chunk}")

Expand Down

0 comments on commit 4418062

Please sign in to comment.