|
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 | +<!-- Here goes a general summary of what this release is about --> |
8 | 6 |
|
9 | 7 | ## Upgrading
|
10 | 8 |
|
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 |
18 |
| - |
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()`. |
20 |
| - |
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. |
22 |
| - |
23 |
| - * `ComponentGraph`: The component graph is now exposed as `microgrid.component_graph.ComponentGraph`. |
24 |
| - |
25 |
| - * `logical_meter()`: The `*_consumption()` and `*_production()` methods were removed. You should use the new `consumption` and `production` formula operators instead. |
26 |
| - |
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 |
| - ``` |
| 9 | +<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with --> |
37 | 10 |
|
38 | 11 | ## New Features
|
39 | 12 |
|
40 |
| -- The configuration flag `resend_latest` can now be changed for channels owned by the `ChannelRegistry`. |
41 |
| - |
42 |
| -- New formula operators for calculating `consumption()` and `production()` were added. |
43 |
| - |
44 |
| -- The `ConnectionManager` now fetches microgrid metadata when connecting to the microgrid and exposes `microgrid_id` and `location` properties of the connected microgrid. |
45 |
| - |
46 |
| - Users can access this information using `microgrid.connection_manager.get().microgrid_id` and `microgrid.connection_manager.get().location`. |
47 |
| - |
48 |
| -- The documentation has been improved to: |
49 |
| - |
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). |
55 |
| - * Fix the order of the documentation versions. |
| 13 | +<!-- Here goes the main new features and examples or instructions on how to use them --> |
56 | 14 |
|
57 | 15 | ## Bug Fixes
|
58 | 16 |
|
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. |
| 17 | +<!-- Here goes notable bug fixes that are worth a special mention or explanation --> |
0 commit comments