Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +3 -3
Mimic4Dataset.py
CHANGED
|
@@ -148,13 +148,13 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
| 148 |
|
| 149 |
if not os.path.exists(path_bench+'/config'):
|
| 150 |
os.makedirs(path_bench+'/config')
|
|
|
|
| 151 |
if self.config_path[0:4] == 'http':
|
| 152 |
file_path, head = urlretrieve(self.config_path)
|
| 153 |
else :
|
| 154 |
file_path = self.config_path
|
| 155 |
-
conf=path_bench+'/config/'+
|
| 156 |
-
|
| 157 |
-
if not os.path.exists(path_bench+'/config/'+self.config_path.split('/')[-1]+'.config'):
|
| 158 |
shutil.move(file_path, path_bench+'/config')
|
| 159 |
|
| 160 |
|
|
|
|
| 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 |
|
| 160 |
|