Commit 832bd47
committed
Add consumer formula generator excluding phantom loads
Meters with successors can still have loads not represented in the
component graph. These are called phantom loads.
Tracking phantom loads requires larger formulas and expects all meters
to be available.
This commit implements the consumer formula generator as it is
implemented in the SDK - exclude producer and battery powers from the
grid power, or when there is no grid meter, add all the non battery
and producer meters.
Signed-off-by: Sahas Subramanian <[email protected]>1 parent f296103 commit 832bd47
File tree
3 files changed
+230
-15
lines changed- src
- graph/formulas
- generators
3 files changed
+230
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
27 | 38 | | |
28 | 39 | | |
29 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments