You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure root component is as close as possible to the grid component (#1216)
The `find_first_descendant_component` accepts a `root_category` and
finds
a component matching that category to begin traversing from. This PR
ensures that the matching root component that's found is as close as
possible to the GRID component.
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+2
Original file line number
Diff line number
Diff line change
@@ -55,3 +55,5 @@
55
55
| EV Chargers | Maximum power (aka max consumption power) |
56
56
57
57
- PV Pool instances can now be created in sites without any PV. This allows for writing generic code that works for all locations, that depends on the PV power formula, for example.
58
+
59
+
- The `find_first_descendant_component` method in the component graph was allowing non-root components to be used as the root component during traversal. This was leading to confusing behaviour when the root component couldn't be identified deterministically. For example, if the root category was specified as a meter, it could start traversing from a different meter each time. It is no-longer possible to specify a root category anymore and it always traverses from the `GRID` component.
0 commit comments