Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +3 -2
Mimic4Dataset.py
CHANGED
@@ -146,11 +146,12 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
146 |
subprocess.run(["git", "clone", repo_url, path_bench])
|
147 |
os.chdir(path_bench)
|
148 |
print('1 : '+ os.getcwd())
|
149 |
-
|
|
|
150 |
#move data to mimic-iv folder
|
151 |
if not os.path.exists(path_bench+'/mimic-iv'):
|
152 |
os.makedirs(path_bench+'/mimic-iv')
|
153 |
-
|
154 |
os.chdir(self.mimic_path.replace(version,''))
|
155 |
print('2 : '+os.getcwd())
|
156 |
shutil.move('/'+version, path_bench+'/mimic-iv/'+version)
|
|
|
146 |
subprocess.run(["git", "clone", repo_url, path_bench])
|
147 |
os.chdir(path_bench)
|
148 |
print('1 : '+ os.getcwd())
|
149 |
+
|
150 |
+
version = self.mimic_path.split('/')[-1]
|
151 |
#move data to mimic-iv folder
|
152 |
if not os.path.exists(path_bench+'/mimic-iv'):
|
153 |
os.makedirs(path_bench+'/mimic-iv')
|
154 |
+
|
155 |
os.chdir(self.mimic_path.replace(version,''))
|
156 |
print('2 : '+os.getcwd())
|
157 |
shutil.move('/'+version, path_bench+'/mimic-iv/'+version)
|