thbndi commited on
Commit
1d2022c
·
1 Parent(s): 65408f0

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +5 -2
Mimic4Dataset.py CHANGED
@@ -160,8 +160,11 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
160
 
161
  if not os.path.exists(path_bench+'/config'):
162
  os.makedirs(path_bench+'/config')
163
- file_path, head = urlretrieve(self.config_path)
164
- shutil.move(file_path, path_bench+'/config')
 
 
 
165
 
166
  file_path, head = urlretrieve(_DATA_GEN, "data_generation_icu_modify.py")
167
  shutil.move(file_path, path_bench+'/model')
 
160
 
161
  if not os.path.exists(path_bench+'/config'):
162
  os.makedirs(path_bench+'/config')
163
+ if self.config_path[0:4] == 'http':
164
+ file_path, head = urlretrieve(self.config_path)
165
+ else :
166
+ print(self.config_path)
167
+ #shutil.move(file_path, path_bench+'/config')
168
 
169
  file_path, head = urlretrieve(_DATA_GEN, "data_generation_icu_modify.py")
170
  shutil.move(file_path, path_bench+'/model')