thbndi commited on
Commit
f042773
·
1 Parent(s): 02342db

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +2 -3
Mimic4Dataset.py CHANGED
@@ -152,9 +152,8 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
152
  path_bench = repodir+'/MIMIC-IV-Data-Pipeline-main'
153
  subprocess.run(["git", "clone", repo_url, path_bench])
154
 
155
- local_script_path = os.path.join(dl_manager.manual_dir, "data_generation_icu_modify.py")
156
- urlretrieve(_DATA_GEN, local_script_path)
157
- shutil.move(local_script_path, path_bench+'/model')
158
 
159
  data_dir = path_bench + "/data/dataDic"
160
  print(data_dir)
 
152
  path_bench = repodir+'/MIMIC-IV-Data-Pipeline-main'
153
  subprocess.run(["git", "clone", repo_url, path_bench])
154
 
155
+ file_path, head = urlretrieve(script_url, "data_generation_icu_modify.py")
156
+ shutil.move(file_path, path_bench+'/model')
 
157
 
158
  data_dir = path_bench + "/data/dataDic"
159
  print(data_dir)