Skip to content

Commit

Permalink
fix: instantiated config_filename attribute
Browse files Browse the repository at this point in the history
fix: instantiated config_filename attribute
  • Loading branch information
luccadibe authored Dec 10, 2024
2 parents 74a8979 + 2f678d8 commit 54127bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion backend/internal/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion backend/internal/experiment_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 54127bb

Please sign in to comment.