Skip to content

Commit 17741cd

Browse files
committed
finished implementation of risk groups
1 parent 33c7322 commit 17741cd

14 files changed

+786
-1054
lines changed

ngraph/blueprints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ def _process_node_overrides(net: Network, network_data: Dict[str, Any]) -> None:
697697
Each override must have {"path"} plus optionally {"attrs", "disabled", "risk_groups"}.
698698
699699
- If "disabled" is present at top level, we set node.disabled.
700-
- If "risk_groups" is present, we *replace* the nodes risk_groups.
700+
- If "risk_groups" is present, we *replace* the node's risk_groups.
701701
- Everything else merges into node.attrs.
702702
703703
Args:
@@ -745,7 +745,7 @@ def _update_links(
745745
If any_direction=True, both (source->target) and (target->source) links
746746
are updated if present.
747747
748-
If link_params["risk_groups"] is given, it *replaces* the links existing risk_groups.
748+
If link_params["risk_groups"] is given, it *replaces* the link's existing risk_groups.
749749
750750
Args:
751751
net (Network): The network whose links should be updated.

0 commit comments

Comments
 (0)