Skip to content

Commit 7cf4cdf

Browse files
committed
minor corrections to comments
1 parent e9d95aa commit 7cf4cdf

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ngraph/scenario.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def from_yaml(cls, yaml_str: str) -> Scenario:
120120
network_data = data.get("network", {})
121121
network = cls._build_network(network_data)
122122

123-
# 2) Build the (new) multi-rule failure policy
123+
# 2) Build the multi-rule failure policy
124124
fp_data = data.get("failure_policy", {})
125125
failure_policy = cls._build_failure_policy(fp_data)
126126

tests/scenarios/test_scenario_1.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,13 @@ def test_scenario_1_build_graph() -> None:
4949
actual_edges == expected_nx_edges
5050
), f"Expected {expected_nx_edges} directed edges, found {actual_edges}"
5151

52-
# 7) Verify the traffic demands. In scenario_1.yaml, let's assume we have 4 demands.
53-
# Adjust this to match your actual scenario_1.yaml.
52+
# 7) Verify the traffic demands.
5453
expected_demands = 4
5554
assert (
5655
len(scenario.traffic_demands) == expected_demands
5756
), f"Expected {expected_demands} traffic demands."
5857

59-
# 8) Check the new multi-rule failure policy for "any single link".
58+
# 8) Check the multi-rule failure policy for "any single link".
6059
# This should have exactly 1 rule that picks exactly 1 link from all links.
6160
policy: FailurePolicy = scenario.failure_policy
6261
assert len(policy.rules) == 1, "Should only have 1 rule for 'anySingleLink'."

0 commit comments

Comments
 (0)