Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +2 -2
Mimic4Dataset.py
CHANGED
@@ -145,7 +145,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
145 |
dir=dir+'/'
|
146 |
elif dir=='':
|
147 |
dir="./"
|
148 |
-
|
149 |
parent_dir = os.path.dirname(self.mimic_path)
|
150 |
os.chdir(parent_dir)
|
151 |
|
@@ -190,7 +190,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
190 |
if not os.path.exists('cohort.py'):
|
191 |
shutil.move(file_path, './')
|
192 |
|
193 |
-
data_dir = "./data/dict/"+self.config
|
194 |
sys.path.append(path_bench)
|
195 |
config = self.config_path.split('/')[-1]
|
196 |
script = 'python cohort.py '+ self.config.name +" "+ self.mimic_path+ " "+path_bench+ " "+config
|
|
|
145 |
dir=dir+'/'
|
146 |
elif dir=='':
|
147 |
dir="./"
|
148 |
+
print(os.getcwd())
|
149 |
parent_dir = os.path.dirname(self.mimic_path)
|
150 |
os.chdir(parent_dir)
|
151 |
|
|
|
190 |
if not os.path.exists('cohort.py'):
|
191 |
shutil.move(file_path, './')
|
192 |
|
193 |
+
data_dir = "./data/dict/"+self.config+"/dataDic"
|
194 |
sys.path.append(path_bench)
|
195 |
config = self.config_path.split('/')[-1]
|
196 |
script = 'python cohort.py '+ self.config.name +" "+ self.mimic_path+ " "+path_bench+ " "+config
|