thbndi commited on
Commit
49fd409
·
1 Parent(s): 3917e08

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +3 -3
Mimic4Dataset.py CHANGED
@@ -225,10 +225,10 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
225
  sys.path.append(path_bench)
226
  config = self.config_path.split('/')[-1]
227
 
228
- script = 'python cohort2.py '+ self.config.name.replace(" ","_") +" "+ self.mimic_path+ " "+path_bench+ " "+config
229
  print(script)
230
- #if not os.path.exists(data_dir) :
231
- os.system(script)
232
  return [
233
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_dir}),
234
  ]
 
225
  sys.path.append(path_bench)
226
  config = self.config_path.split('/')[-1]
227
 
228
+ script = 'python cohort.py '+ self.config.name.replace(" ","_") +" "+ self.mimic_path+ " "+path_bench+ " "+config
229
  print(script)
230
+ if not os.path.exists(data_dir) :
231
+ os.system(script)
232
  return [
233
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_dir}),
234
  ]