thbndi commited on
Commit
ca7b53d
·
1 Parent(s): 8033f86

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +2 -2
Mimic4Dataset.py CHANGED
@@ -145,7 +145,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
145
  dir=dir+'/'
146
  elif dir=='':
147
  dir="./"
148
-
149
  parent_dir = os.path.dirname(self.mimic_path)
150
  os.chdir(parent_dir)
151
 
@@ -190,7 +190,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
190
  if not os.path.exists('cohort.py'):
191
  shutil.move(file_path, './')
192
 
193
- data_dir = "./data/dict/"+self.config.name+"/dataDic"
194
  sys.path.append(path_bench)
195
  config = self.config_path.split('/')[-1]
196
  script = 'python cohort.py '+ self.config.name +" "+ self.mimic_path+ " "+path_bench+ " "+config
 
145
  dir=dir+'/'
146
  elif dir=='':
147
  dir="./"
148
+ print(os.getcwd())
149
  parent_dir = os.path.dirname(self.mimic_path)
150
  os.chdir(parent_dir)
151
 
 
190
  if not os.path.exists('cohort.py'):
191
  shutil.move(file_path, './')
192
 
193
+ data_dir = "./data/dict/"+self.config+"/dataDic"
194
  sys.path.append(path_bench)
195
  config = self.config_path.split('/')[-1]
196
  script = 'python cohort.py '+ self.config.name +" "+ self.mimic_path+ " "+path_bench+ " "+config