Skip to content

Commit

Permalink
fixed bug with loading feature columns json for aces task script
Browse files Browse the repository at this point in the history
  • Loading branch information
Nassim Oufattole committed Jun 2, 2024
1 parent 820e194 commit 4b0637a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hf_cohort/aces_task_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def main(cfg):
.rename({"trigger": "timestamp", "subject_id": "patient_id"})
.sort(by=["patient_id", "timestamp"])
)
feature_columns = json.read(Path(cfg.tabularized_data_dir) / "feature_columns.json")
feature_columns = json.load(open(Path(cfg.tabularized_data_dir) / "feature_columns.json"))
data_df = pl.scan_parquet(in_fp)
data_df = get_unique_time_events_df(get_events_df(data_df, feature_columns))
data_df = data_df.drop(["code", "numerical_value"])
Expand Down

0 comments on commit 4b0637a

Please sign in to comment.