You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... that abstracts away the creation of the data sourcing and resampling
actors, and provides an easy way to access the logical meter or one of
the pools.
Currently only provides two methods: `logical_meter` and
`ev_charger_pool`.
`battery_pool` probably needs some consensus on how args should be pass
and interaction between `PowerDistributingActor`, which can be done in a
subsequent PR.
This allows for the following interface:
``` python
async def run():
await microgrid.initialize(
host=HOST, port=PORT, resampler_config=ResamplerConfig(resampling_period_s=1.0)
)
grid_power = microgrid.logical_meter().grid_power()
```
This PR also renames:
1. `microgrid._microgrid` to `microgrid.connection_manager`
2. `tests/utils/mock_microgrid.py` to `mock_microgrid_client.py`
0 commit comments