Skip to content

Commit

Permalink
Add parameters.baseline which is 'baseline parameters (#180)
Browse files Browse the repository at this point in the history
Fixes #179
  • Loading branch information
nikhilwoodruff authored Apr 16, 2024
1 parent b827cfa commit 6cef413
Show file tree
Hide file tree
Showing 2 changed files with 5 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:
- Baseline parameter node.
1 change: 1 addition & 0 deletions policyengine_core/taxbenefitsystems/tax_benefit_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def __init__(self, entities: Sequence[Entity] = None, reform=None) -> None:

if self.parameters_dir is not None:
self.load_parameters(self.parameters_dir)
self.parameters.add_child("baseline", self.parameters.clone())
if reform:
self.apply_reform_set(reform)
self.parameters = homogenize_parameter_structures(
Expand Down

0 comments on commit 6cef413

Please sign in to comment.