From 2f678d88d944a7f4968ec6ab60c6fa0b56632223 Mon Sep 17 00:00:00 2001 From: luccadibe Date: Tue, 10 Dec 2024 16:30:47 +0100 Subject: [PATCH] fix: instantiated config_filename attribute --- backend/internal/engine.py | 4 +++- backend/internal/experiment_manager.py | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/internal/engine.py b/backend/internal/engine.py index 35cf4be..bea86e6 100644 --- a/backend/internal/engine.py +++ b/backend/internal/engine.py @@ -30,10 +30,12 @@ class Engine: This class encapsulates all behavior needed to execute observability experiments. """ - def __init__(self, configuration_path=None, report_path=None, out_path=None, out_formats=None, orchestrator_class=None, spec=None): + def __init__(self, configuration_path=None, report_path=None, out_path=None, out_formats=None, orchestrator_class=None, spec=None, config_filename=None): assert configuration_path is not None, "Configuration path must be specified" self.config = configuration_path """The path to the configuration file for this engine""" + self.config_filename = config_filename + """The filename of the configuration file for this engine""" self.spec = spec """The loaded experiment specification""" self.report_path = report_path diff --git a/backend/internal/experiment_manager.py b/backend/internal/experiment_manager.py index 33628b3..f9cf687 100644 --- a/backend/internal/experiment_manager.py +++ b/backend/internal/experiment_manager.py @@ -105,7 +105,8 @@ def run_experiment(self, experiment_id, output_format, runs): out_path=out_path, out_formats=[output_format], orchestrator_class=orchestrator, - spec=experiment + spec=experiment, + config_filename=experiment_id ) engine.run(runs=runs, orchestration_timeout=None, randomize=False, accounting=False)