Skip to content

Commit

Permalink
Breakdown-added parameters often precede uprating indices (#172)
Browse files Browse the repository at this point in the history
Fixes #171
  • Loading branch information
nikhilwoodruff authored Mar 5, 2024
1 parent 418ce86 commit 4451ae7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: patch
changes:
fixed:
- Breakdown-added parameters no longer precede uprating indices.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ def homogenize_parameter_node(
node = ParameterNode(
node.name,
data={
child: {"2000-01-01": default_value}
child: {
"0000-01-01": default_value,
"2040-01-01": default_value,
}
for child in possible_values
},
)
Expand All @@ -91,7 +94,8 @@ def homogenize_parameter_node(
node.add_child(
str(value),
Parameter(
node.name + "." + str(value), {"2000-01-01": default_value}
node.name + "." + str(value),
{"0000-01-01": default_value, "2040-01-01": default_value},
),
)
for child in node.children:
Expand Down

0 comments on commit 4451ae7

Please sign in to comment.