|
2 | 2 |
|
3 | 3 | ## Summary
|
4 | 4 |
|
| 5 | +The `microgrid` package now exposes grid connections uniformly and introduces formula operators for `consumption` and `production`, replacing the `logical_meter.*_{production,consumption}()` formulas. The `actor` package restarts crashed actors with a delay, and the `ConnectionManager` exposes the `microgrid_id` and `location` details. |
| 6 | + |
| 7 | +There are also a few bug fixes, documentation improvements and other minor breaking changes. |
5 | 8 |
|
6 | 9 | ## Upgrading
|
7 | 10 |
|
8 |
| -- `microgrid.grid()` |
| 11 | +- `actor` package |
| 12 | + |
| 13 | + * Actors are now restarted after a small delay when they crash to avoid a busy loop and spamming the logs if the actor keeps failing to start. |
| 14 | + |
| 15 | + * The `include_broken_batteries` argument was removed from the `PowerDistributingActor`'s `Request`. This option is no longer supported. |
| 16 | + |
| 17 | +- `microgrid` package |
9 | 18 |
|
10 |
| - * Similar to `microgrid.battery_pool()`, the Grid is now similarily accessed. |
| 19 | + * `grid`: The grid connection is now exposed as `microgrid.grid()`. This is more consistent with other objects exposed in the `microgrid` module, such as `microgrid.battery_pool()` and `microgrid.logical_meter()`. |
11 | 20 |
|
12 |
| -- `BatteryPool`'s control methods |
| 21 | + * `battery_pool()`: The `include_broken_batteries` argument was removed from the `propose_*()` methods (it was also removed from the underlying type, `timeseries.BatteryPool`). This option is no longer supported. |
13 | 22 |
|
14 |
| - * They no longer have a `include_broken_batteries` parameter. The feature has been removed. |
| 23 | + * `ComponentGraph`: The component graph is now exposed as `microgrid.component_graph.ComponentGraph`. |
15 | 24 |
|
16 |
| -- Move `microgrid.ComponentGraph` class to `microgrid.component_graph.ComponentGraph`, exposing only the high level interface functions through the `microgrid` package. |
| 25 | + * `logical_meter()`: The `*_consumption()` and `*_production()` methods were removed. You should use the new `consumption` and `production` formula operators instead. |
17 | 26 |
|
18 |
| -- An actor that is crashing will no longer instantly restart but induce an artificial delay to avoid potential spam-restarting. |
| 27 | + For example: |
| 28 | + |
| 29 | + ```python |
| 30 | + # Old: |
| 31 | + pv_consumption = logical_meter.pv_consumption_power() |
| 32 | + production = (logical_meter.pv_production_power() + logical_meter.chp_production_power()).build() |
| 33 | + # New: |
| 34 | + pv_consumption = logical_meter.pv_power().consumption().build() |
| 35 | + production = (logical_meter.pv_power().production() + logical_meter.chp_power().production()).build() |
| 36 | + ``` |
19 | 37 |
|
20 | 38 | ## New Features
|
21 | 39 |
|
| 40 | +- The configuration flag `resend_latest` can now be changed for channels owned by the `ChannelRegistry`. |
22 | 41 |
|
23 |
| -- Allow configuration of the `resend_latest` flag in channels owned by the `ChannelRegistry`. |
| 42 | +- New formula operators for calculating `consumption()` and `production()` were added. |
24 | 43 |
|
25 |
| -- Add consumption and production operators that will replace the logical meters production and consumption function variants. |
| 44 | +- The `ConnectionManager` now fetches microgrid metadata when connecting to the microgrid and exposes `microgrid_id` and `location` properties of the connected microgrid. |
26 | 45 |
|
27 |
| -- Consumption and production power formulas have been removed. |
| 46 | + Users can access this information using `microgrid.connection_manager.get().microgrid_id` and `microgrid.connection_manager.get().location`. |
28 | 47 |
|
29 |
| -- The documentation was improved to: |
| 48 | +- The documentation has been improved to: |
30 | 49 |
|
31 |
| - * Show signatures with types. |
32 |
| - * Show the inherited members. |
33 |
| - * Documentation for pre-releases are now published. |
34 |
| - * Show the full tag name as the documentation version. |
35 |
| - * All development branches now have their documentation published (there is no `next` version anymore). |
| 50 | + * Display signatures with types. |
| 51 | + * Show inherited members. |
| 52 | + * Publish documentation for pre-releases. |
| 53 | + * Present the full tag name as the documentation version. |
| 54 | + * Ensure all development branches have their documentation published (the `next` version has been removed). |
36 | 55 | * Fix the order of the documentation versions.
|
37 | 56 |
|
38 |
| -- The `ConnectionManager` fetches microgrid metadata when connecting to the microgrid and exposes `microgrid_id` and `location` properties of the connected microgrid. |
39 |
| - |
40 | 57 | ## Bug Fixes
|
41 | 58 |
|
42 |
| -- Fix incorrect grid current calculations in locations where the calculations depended on current measurements from an inverter. |
43 |
| -- Fix power failure report to exclude any failed power from the succeeded power. |
| 59 | +- Fixed incorrect grid current calculations in locations where the calculations depended on current measurements from an inverter. |
| 60 | + |
| 61 | +- Corrected the power failure report to exclude any failed power calculations from the successful ones. |
0 commit comments