Skip to content

Commit 10bc5cd

Browse files
committed
Update release notes
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
1 parent 49fb95a commit 10bc5cd

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

RELEASE_NOTES.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@
88

99
- `LogicalMeterConfig` instances can't be created directly anymore, and need to be created using the `LogicalMeterConfig::new` method. This helps avoid future breaking changes, as we add more config parameters.
1010

11+
- Formula streaming methods in the `LogicalMeterHandle` no longer take metric as a function parameter, but expect a generic argument. For example:
12+
13+
*Old syntax:*
14+
```rust
15+
let formula_grid = logical_meter.grid(metric::AcPowerActive)?;
16+
let formula_pv = logical_meter.pv(None, metric::AcVoltage)?;
17+
```
18+
19+
*New syntax:*
20+
```rust
21+
let formula_grid = logical_meter.grid::<metric::AcPowerActive>()?;
22+
let formula_pv = logical_meter.pv::<metric::AcVoltage>(None)?;
23+
```
24+
1125
## New Features
1226

1327
- It is now possible to change the default resampling function, and to override the resampling function for specific metrics.

0 commit comments

Comments
 (0)