Skip to content

Commit

Permalink
Add inclusive / exclusive metadata tag to scale parameters
Browse files Browse the repository at this point in the history
Fixes #221
  • Loading branch information
PavelMakarchuk committed Jul 10, 2024
1 parent e29d51c commit 7e9f32b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: minor
changes:
added:
- Add inclusive / exclusive metadata tag to parameters.
3 changes: 3 additions & 0 deletions policyengine_core/data_structures/parameter_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ class ParameterMetadata:
unit: str
"""The real-world meaning of a particular value."""

inclusive: bool
"""Whether the value is inclusive or exclusive of the upper bound."""

uprating: Union[UpratingIndex, UpratingSchema]
"""The schema for uprating this parameter.
Expand Down
3 changes: 3 additions & 0 deletions policyengine_core/data_structures/parameter_node_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,8 @@ class ParameterNodeMetadata:
"""

inclusive: bool
"""Whether the value is inclusive or exclusive of the upper bound."""

propagate_metadata_to_children: bool
"""Whether to propagate metadata to children of this node. This excludes `breakdown`."""

0 comments on commit 7e9f32b

Please sign in to comment.