Update Mimic4Dataset.py
Browse files- 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 |
-
|
133 |
-
|
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')
|