thbndi commited on
Commit
24e0d93
·
1 Parent(s): 2fe0812

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +2 -4
Mimic4Dataset.py CHANGED
@@ -148,16 +148,14 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
148
 
149
 
150
  if self.config_path[0:4] == 'http':
151
- file_path, head = urlretrieve(self.config_path)
 
152
  else :
153
  file_path = self.config_path
154
 
155
  conf=path_bench+'/config/'+file_path.split('/')[-1]
156
- print(conf)
157
-
158
  if not os.path.exists(conf):
159
  shutil.move(file_path, path_bench+'/config')
160
-
161
 
162
  if not os.path.exists(path_bench+'/model/data_generation_icu_modify.py'):
163
  file_path, head = urlretrieve(_DATA_GEN, "data_generation_icu_modify.py")
 
148
 
149
 
150
  if self.config_path[0:4] == 'http':
151
+ c = file_path.split('/')[-1]
152
+ file_path, head = urlretrieve(self.config_path,c)
153
  else :
154
  file_path = self.config_path
155
 
156
  conf=path_bench+'/config/'+file_path.split('/')[-1]
 
 
157
  if not os.path.exists(conf):
158
  shutil.move(file_path, path_bench+'/config')
 
159
 
160
  if not os.path.exists(path_bench+'/model/data_generation_icu_modify.py'):
161
  file_path, head = urlretrieve(_DATA_GEN, "data_generation_icu_modify.py")