def _call_input_file_writer(self, year, dataset_pool):
     writer_module = self.config['travel_model_configuration'].get('travel_model_input_file_writer')
     writer_class = get_camel_case_class_name_from_opus_path(writer_module)
     file_writer = ClassFactory().get_class( writer_module, class_name=writer_class )
     current_year_emme2_dir = self.get_emme2_dir(year)
     filename = file_writer.run(current_year_emme2_dir, year, dataset_pool, config=self.config)
     if isinstance(filename, list):
         return filename
     return [filename]
Beispiel #2
0
    def sample_inputs(self):
        from opus_core.misc import get_camel_case_class_name_from_opus_path
        exec("from %s  import %s as MultipleRunsModification" %
             (self.multiple_runs_config,
              get_camel_case_class_name_from_opus_path(
                  self.multiple_runs_config)))
        MultipleRunsModification().modify_configuration(self)


#if __name__ == "__main__":
#    Baseline()
Beispiel #3
0
 def _call_input_file_writer(self, year, dataset_pool):
     writer_module = self.config['travel_model_configuration'].get(
         'travel_model_input_file_writer')
     writer_class = get_camel_case_class_name_from_opus_path(writer_module)
     file_writer = ClassFactory().get_class(writer_module,
                                            class_name=writer_class)
     current_year_emme2_dir = self.get_emme2_dir(year)
     filename = file_writer.run(current_year_emme2_dir,
                                year,
                                dataset_pool,
                                config=self.config)
     if isinstance(filename, list):
         return filename
     return [filename]
Beispiel #4
0
    def sample_inputs(self):
        from opus_core.misc import get_camel_case_class_name_from_opus_path
        exec("from %s  import %s as MultipleRunsModification" % (self.multiple_runs_config, get_camel_case_class_name_from_opus_path(self.multiple_runs_config)))
        MultipleRunsModification().modify_configuration(self)

#if __name__ == "__main__":
#    Baseline()