thbndi commited on
Commit
17d03be
·
1 Parent(s): a68c8eb

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +2 -2
Mimic4Dataset.py CHANGED
@@ -201,8 +201,8 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
201
  config = self.config_path.split('/')[-1]
202
 
203
  script = 'python cohort.py '+ self.config.name +" "+ self.mimic_path+ " "+path_bench+ " "+config
204
- if not os.path.exists(data_dir) :
205
- os.system(script)
206
  return [
207
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_dir}),
208
  ]
 
201
  config = self.config_path.split('/')[-1]
202
 
203
  script = 'python cohort.py '+ self.config.name +" "+ self.mimic_path+ " "+path_bench+ " "+config
204
+ #if not os.path.exists(data_dir) :
205
+ os.system(script)
206
  return [
207
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_dir}),
208
  ]