diff --git a/sumo_project/data.py b/sumo_project/data.py index f165bac..48fc606 100644 --- a/sumo_project/data.py +++ b/sumo_project/data.py @@ -83,6 +83,9 @@ class Data: else: phase_def = phase_def[0] + + + return Phase(duration[0], min_duration[0], max_duration[0], phase_def) def add_data_to_areas(self): diff --git a/sumo_project/runner.py b/sumo_project/runner.py index 74c915e..9b4d6da 100644 --- a/sumo_project/runner.py +++ b/sumo_project/runner.py @@ -70,7 +70,7 @@ class RunProcess(multiprocessing.Process): conf_name = self.config.config_filename.replace('.json', '') log_filename = f'{logdir}/{current_date}.log' - self.logger = logging.getLogger(f'{self.data.dir}_{conf_name}') + self.logger = logging.getLogger(f'sumo_logger') self.logger.setLevel(logging.INFO) formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")