Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +3 -1
Mimic4Dataset.py
CHANGED
@@ -136,7 +136,9 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
136 |
repodir = os.getcwd()
|
137 |
path_bench = repodir+'/MIMIC-IV-Data-Pipeline-main'
|
138 |
repo_url='https://github.com/healthylaife/MIMIC-IV-Data-Pipeline'
|
139 |
-
|
|
|
|
|
140 |
|
141 |
return [
|
142 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_dir, "benchmark": path_bench}),
|
|
|
136 |
repodir = os.getcwd()
|
137 |
path_bench = repodir+'/MIMIC-IV-Data-Pipeline-main'
|
138 |
repo_url='https://github.com/healthylaife/MIMIC-IV-Data-Pipeline'
|
139 |
+
if not os.path.exists(path_bench):
|
140 |
+
#subprocess.run(["git", "clone", repo_url, path_bench])
|
141 |
+
print('ok')
|
142 |
|
143 |
return [
|
144 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_dir, "benchmark": path_bench}),
|