Skip to content

Commit

Permalink
chore: be explicit on inputs to single link losses and redundancy ana… (
Browse files Browse the repository at this point in the history
  • Loading branch information
ArdtK authored Jan 9, 2025
1 parent b469c38 commit 7f596c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion ra2ce/analysis/analysis_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ def get_losses_analysis(
_analysis_input = AnalysisInputWrapper.from_input(
analysis=analysis,
analysis_config=analysis_config,
graph_file=analysis_config.graph_files.base_graph_hazard,
graph_file_hazard=analysis_config.graph_files.base_graph_hazard,
)
return SingleLinkLosses(_analysis_input, analysis_config)
Expand Down
2 changes: 2 additions & 0 deletions ra2ce/analysis/losses/single_link_losses.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ class SingleLinkLosses(LossesBase):
"""

def _get_criticality_analysis(self) -> SingleLinkRedundancy:
# Provide the graph file with hazard overlay if it's result is consumed by a losses analysis.
self.analysis_input.graph_file = self.analysis_input.graph_file_hazard
return SingleLinkRedundancy(self.analysis_input)

0 comments on commit 7f596c7

Please sign in to comment.