Skip to content

Merge conservation_rules and rule_priorities attributes #279

@redeboer

Description

@redeboer

While investigating #272, I started to wonder why EdgeSettings and NodeSettings require conservation_rules as well as rule_priorities. Can't these two just be combined into one attribute of type dict[Rule, int]?

@define
class EdgeSettings:
"""Solver settings for a specific edge of a graph."""
conservation_rules: set[GraphElementRule] = field(factory=set)
rule_priorities: dict[GraphElementRule, int] = field(factory=dict)
qn_domains: dict[Any, list] = field(factory=dict)

Metadata

Metadata

Labels

⚠️ InterfaceBreaking changes to the API❔ QuestionDiscuss this matter in the team

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions