thbndi commited on
Commit
422f6f1
·
1 Parent(s): ab37178

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +5 -6
Mimic4Dataset.py CHANGED
@@ -132,12 +132,11 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
132
  )
133
 
134
  def _split_generators(self, dl_manager: datasets.DownloadManager()):
135
- print(self.config.name)
136
- if self.name == 'Phenotype' and self.config_path is None : self.config_path = _CONFIG_URLS['phenotype']
137
- if self.name == 'Readmission' and self.config_path is None : self.config_path = _CONFIG_URLS['readmission']
138
- if self.name == 'Length of Stay' and self.config_path is None : self.config_path = _CONFIG_URLS['los']
139
- if self.name == 'Mortality' and self.config_path is None : self.config_path = _CONFIG_URLS['mortality']
140
-
141
  repo_url='https://github.com/healthylaife/MIMIC-IV-Data-Pipeline'
142
  if os.path.exists(os.path.dirname(os.path.abspath('MIMIC-IV-Data-Pipeline-main'))):
143
  path_bench = os.path.dirname(os.path.abspath('MIMIC-IV-Data-Pipeline-main'))+'/MIMIC-IV-Data-Pipeline-main'
 
132
  )
133
 
134
  def _split_generators(self, dl_manager: datasets.DownloadManager()):
135
+ if self.config.name == 'Phenotype' and self.config_path is None : self.config_path = _CONFIG_URLS['phenotype']
136
+ if self.config.name == 'Readmission' and self.config_path is None : self.config_path = _CONFIG_URLS['readmission']
137
+ if self.config.name == 'Length of Stay' and self.config_path is None : self.config_path = _CONFIG_URLS['los']
138
+ if self.config.name == 'Mortality' and self.config_path is None : self.config_path = _CONFIG_URLS['mortality']
139
+ print(self.config_path)
 
140
  repo_url='https://github.com/healthylaife/MIMIC-IV-Data-Pipeline'
141
  if os.path.exists(os.path.dirname(os.path.abspath('MIMIC-IV-Data-Pipeline-main'))):
142
  path_bench = os.path.dirname(os.path.abspath('MIMIC-IV-Data-Pipeline-main'))+'/MIMIC-IV-Data-Pipeline-main'