Skip to content

Commit

Permalink
changed from window_stats_filename to window_stats_filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
Oufattole committed Aug 28, 2024
1 parent fa413de commit 353d8a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/aces/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ def main(cfg: DictConfig):
result = result.with_columns(pl.lit(None, dtype=pl.Int64).alias("patient_id"))
result = result.head(0)
if cfg.window_stats_dir:
Path(cfg.window_stats_filename).parent.mkdir(exist_ok=True, parents=True)
result.write_parquet(cfg.window_stats_filename)
Path(cfg.window_stats_filepath).parent.mkdir(exist_ok=True, parents=True)
result.write_parquet(cfg.window_stats_filepath)
result = get_and_validate_label_schema(result)
pq.write_table(result, cfg.output_filepath)
else:
Expand Down
2 changes: 1 addition & 1 deletion src/aces/configs/aces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ config_path: ${cohort_dir}/${cohort_name}.yaml
output_filepath: ${cohort_dir}/${cohort_name}${data._prefix}.parquet
# Optional path to store the output file with the raw window data.
window_stats_dir: null
window_stats_filename: ${window_stats_dir}/${cohort_name}${data._prefix}.parquet
window_stats_filepath: ${window_stats_dir}/${cohort_name}${data._prefix}.parquet

log_dir: ${cohort_dir}/${cohort_name}/.logs

Expand Down

0 comments on commit 353d8a5

Please sign in to comment.