thbndi commited on
Commit
3ddaf11
1 Parent(s): 788d24e

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +5 -4
Mimic4Dataset.py CHANGED
@@ -158,18 +158,19 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
158
  repo_url='https://github.com/healthylaife/MIMIC-IV-Data-Pipeline'
159
  if os.path.exists('MIMIC-IV-Data-Pipeline-main'):
160
  path_bench = './MIMIC-IV-Data-Pipeline-main'
161
- os.chdir(path_bench)
162
  print('1 : '+os.getcwd())
163
  else:
164
  path_bench ='./MIMIC-IV-Data-Pipeline-main'
165
  print('1 bis : '+os.getcwd())
166
  subprocess.run(["git", "clone", repo_url, path_bench])
167
- os.chdir(path_bench)
168
- os.makedirs('mimic-iv')
169
  shutil.move(self.mimic_path,path_bench+'/mimic-iv')
170
 
171
  #print('2 : '+os.getcwd())
172
- print('0 : '+os.getcwd())
 
173
  self.mimic_path = './mimic-iv/'+version
174
 
175
  #download config file if not custom
 
158
  repo_url='https://github.com/healthylaife/MIMIC-IV-Data-Pipeline'
159
  if os.path.exists('MIMIC-IV-Data-Pipeline-main'):
160
  path_bench = './MIMIC-IV-Data-Pipeline-main'
161
+ #os.chdir(path_bench)
162
  print('1 : '+os.getcwd())
163
  else:
164
  path_bench ='./MIMIC-IV-Data-Pipeline-main'
165
  print('1 bis : '+os.getcwd())
166
  subprocess.run(["git", "clone", repo_url, path_bench])
167
+ #os.chdir(path_bench)
168
+ os.makedirs(path_bench+'/mimic-iv')
169
  shutil.move(self.mimic_path,path_bench+'/mimic-iv')
170
 
171
  #print('2 : '+os.getcwd())
172
+ os.chdir(path_bench)
173
+ print('5 : '+os.getcwd())
174
  self.mimic_path = './mimic-iv/'+version
175
 
176
  #download config file if not custom