Skip to content

Commit

Permalink
Merge pull request mmcdermott#224 from mmcdermott/mimic-premeds-minor…
Browse files Browse the repository at this point in the history
…-fixes

Minor fixes in MIMIC_example
  • Loading branch information
mmcdermott authored Nov 12, 2024
2 parents f38901d + 069b2b9 commit 553250e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MIMIC-IV_Example/pre_MEDS.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def main(cfg: DictConfig):
)
exit(0)

all_fps = list(input_dir.glob("**/*.*"))
all_fps = list(input_dir.rglob("*/*.*"))

dfs_to_load = {}
seen_fps = {}
Expand Down Expand Up @@ -299,9 +299,9 @@ def main(cfg: DictConfig):

logger.info(f"Loading {str(df_to_load_fp.resolve())} for manipulating other dataframes...")
if df_to_load_fp.suffix in [".csv.gz"]:
df = read_fn(df_to_load_fp, columns=cols)
df = df_to_load_read_fn(df_to_load_fp, columns=cols)
else:
df = read_fn(df_to_load_fp)
df = df_to_load_read_fn(df_to_load_fp)
logger.info(f" Loaded in {datetime.now() - st}")

for fp in fps:
Expand Down

0 comments on commit 553250e

Please sign in to comment.