thbndi commited on
Commit
2683fa3
·
verified ·
1 Parent(s): c0b8581

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +2 -4
Mimic4Dataset.py CHANGED
@@ -129,10 +129,8 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
129
 
130
  #####################clone git repo if doesnt exists
131
  repo_url='https://github.com/healthylaife/MIMIC-IV-Data-Pipeline'
132
- if os.path.exists('MIMIC-IV-Data-Pipeline-main'):
133
- path_bench = './MIMIC-IV-Data-Pipeline-main'
134
- else:
135
- path_bench ='./MIMIC-IV-Data-Pipeline-main'
136
  subprocess.run(["git", "clone", repo_url, path_bench],shell = True,capture_output=True)
137
  os.makedirs(path_bench+'/'+'mimic-iv')
138
  shutil.move(version,path_bench+'/'+'mimic-iv')
 
129
 
130
  #####################clone git repo if doesnt exists
131
  repo_url='https://github.com/healthylaife/MIMIC-IV-Data-Pipeline'
132
+ path_bench = './MIMIC-IV-Data-Pipeline'
133
+ if not os.path.exists(path_bench)
 
 
134
  subprocess.run(["git", "clone", repo_url, path_bench],shell = True,capture_output=True)
135
  os.makedirs(path_bench+'/'+'mimic-iv')
136
  shutil.move(version,path_bench+'/'+'mimic-iv')