Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +3 -2
Mimic4Dataset.py
CHANGED
|
@@ -146,14 +146,15 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
| 146 |
path_bench = repodir+'/MIMIC-IV-Data-Pipeline-main'
|
| 147 |
subprocess.run(["git", "clone", repo_url, path_bench])
|
| 148 |
|
| 149 |
-
if not os.path.exists(path_bench+'/config'):
|
| 150 |
-
os.makedirs(path_bench+'/config')
|
| 151 |
|
| 152 |
if self.config_path[0:4] == 'http':
|
| 153 |
file_path, head = urlretrieve(self.config_path)
|
| 154 |
else :
|
| 155 |
file_path = self.config_path
|
|
|
|
| 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 |
|
|
|
|
| 146 |
path_bench = repodir+'/MIMIC-IV-Data-Pipeline-main'
|
| 147 |
subprocess.run(["git", "clone", repo_url, path_bench])
|
| 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 |
|