Skip to content

Commit

Permalink
Make the final directory be a named subdirectory of the cohort
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcdermott committed May 19, 2024
1 parent 73d37b9 commit 0441048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/extraction/merge_to_MEDS_cohort.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def main(cfg: DictConfig):

for sp in patient_splits:
in_dir = patient_subsharded_dir / sp
out_fp = MEDS_cohort_dir / f"{sp}.parquet"
out_fp = MEDS_cohort_dir / "final_cohort" / f"{sp}.parquet"

shard_fps = sorted(list(in_dir.glob("**/*.parquet")))
shard_fp_strs = [f" * {str(fp.resolve())}" for fp in shard_fps]
Expand Down

0 comments on commit 0441048

Please sign in to comment.