Commit eef25ec
authored
Add 3-phase current formulas (#164)
This PR introduces some new types for streaming 3-phase data:
- `Sample3Phase` :: for holding a 3-phase measurement.
- `FormulaChannel3Phase/FormulaReceiver3Phase` :: composable
channel/receiver types for streaming `Sample3Phase` objects.
- `FormulaEngine3Phase` :: for combining `Sample` objects from
`FormulaEngine` into `Sample3Phase` objects.
- `HigherOrderFormulaBuilder3Phase` :: For composing
`FormulaReceiver3Phase` and generating new `FormulaEngine3Phase` from
them.
It also adds formula generators for 3-phase `grid_current` and
`ev_charger_current`, and exposes them through the `LogicalMeter`.File tree
11 files changed
+638
-94
lines changed- src/frequenz/sdk/timeseries
- logical_meter
- _formula_generators
- tests/timeseries
11 files changed
+638
-94
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
0 commit comments