thbndi commited on
Commit
308b959
·
1 Parent(s): d4ef3e7

Update cohort.py

Browse files
Files changed (1) hide show
  1. cohort.py +2 -0
cohort.py CHANGED
@@ -17,6 +17,8 @@ import data_generation_icu_modify
17
 
18
  def task_cohort(task,mimic_path,path_benchmark, config):
19
  root_dir = path_benchmark
 
 
20
  version_path = mimic_path
21
  version = version_path.split('/')[-1][0]
22
  print(version)
 
17
 
18
  def task_cohort(task,mimic_path,path_benchmark, config):
19
  root_dir = path_benchmark
20
+ with open(config) as f:
21
+ config = yaml.safe_load(f)
22
  version_path = mimic_path
23
  version = version_path.split('/')[-1][0]
24
  print(version)