Skip to content

Commit 11da62a

Browse files
committed
Update release notes
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent e2d9650 commit 11da62a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

RELEASE_NOTES.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,28 @@
5050

5151
- The `microgrid.frequency()` method no longer supports passing the `component` parameter. Instead the best component is automatically selected.
5252

53+
- The `actor.ChannelRegistry` was rewritten to be type-aware and just a container of channels. You now need to provide the type of message that will be contained by the channel and use the `get_or_create()` method to get a channel and the `stop_and_remove()` method to stop and remove a channel. Once you get a channel you can create new senders and receivers, or set channel options, as usual. Please read the docs for a full description, but in general this:
54+
55+
```python
56+
r = registry.new_receiver(name)
57+
s = registry.new_sender(name)
58+
```
59+
60+
Should be replaced by:
61+
62+
```python
63+
r = registry.get_or_create(T, name).new_receiver()
64+
s = registry.get_or_create(T, name).new_sender()
65+
```
66+
67+
- The `ReceiverFetcher` interface was slightly changed to make `maxsize` a keyword-only argument. This is to make it compatible with the `Broadcast` channel, so it can be considered a `ReceiverFetcher`.
68+
5369
## New Features
5470

5571
- A new method `microgrid.voltage()` was added to allow easy access to the phase-to-neutral 3-phase voltage of the microgrid.
5672

73+
- The `actor.ChannelRegistry` is now type-aware.
74+
5775
## Bug Fixes
5876

5977
- 0W power requests are now not adjusted to exclusion bounds by the `PowerManager` and `PowerDistributor`, and are sent over to the microgrid API directly.

0 commit comments

Comments
 (0)