Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +2 -2
Mimic4Dataset.py
CHANGED
@@ -204,7 +204,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
204 |
os.makedirs('config')
|
205 |
#save config file in config folder
|
206 |
conf='./config/'+file_path.split('/')[-1]
|
207 |
-
|
208 |
if not os.path.exists(conf):
|
209 |
shutil.move(file_path,'./config')
|
210 |
|
@@ -224,9 +224,9 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
224 |
data_dir = "./data/dict/"+self.config.name+"/dataDic"
|
225 |
sys.path.append(path_bench)
|
226 |
config = self.config_path.split('/')[-1]
|
227 |
-
print(config)
|
228 |
|
229 |
script = 'python cohort.py '+ self.config.name +" "+ self.mimic_path+ " "+path_bench+ " "+config
|
|
|
230 |
#if not os.path.exists(data_dir) :
|
231 |
os.system(script)
|
232 |
return [
|
|
|
204 |
os.makedirs('config')
|
205 |
#save config file in config folder
|
206 |
conf='./config/'+file_path.split('/')[-1]
|
207 |
+
|
208 |
if not os.path.exists(conf):
|
209 |
shutil.move(file_path,'./config')
|
210 |
|
|
|
224 |
data_dir = "./data/dict/"+self.config.name+"/dataDic"
|
225 |
sys.path.append(path_bench)
|
226 |
config = self.config_path.split('/')[-1]
|
|
|
227 |
|
228 |
script = 'python cohort.py '+ self.config.name +" "+ self.mimic_path+ " "+path_bench+ " "+config
|
229 |
+
print(script)
|
230 |
#if not os.path.exists(data_dir) :
|
231 |
os.system(script)
|
232 |
return [
|