Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add inclusive / exclusive metadata tag to scale parameters #222

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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`."""
Loading