Replies: 4 comments
-
Related to this, I think we should think a bit more and make more explicit when we are creating new objects and when we are just returning a singleton.
For functions, I think we should rename them It makes it super clear that if you want to use the same battery pool in different places you need to save the object instead of calling |
Beta Was this translation helpful? Give feedback.
-
ping @frequenz-floss/python-sdk-team |
Beta Was this translation helpful? Give feedback.
-
Follow-up issues: |
Beta Was this translation helpful? Give feedback.
-
The question about if |
Beta Was this translation helpful? Give feedback.
-
We have a proposal to add more logical components, as we have with
battery_pool
andgrid
, so metrics are grouped in namespaces more naturally.The idea is to move metrics like
consumer_power
andproducer_power
tomicrogrid.consumer.power
andmicrogrid.producer.power
.At the end all logical components exposed via the
microgrid
namespace can potentially offer the full set of metrics a meter could offer (current, power, voltage, etc.).This leaves the current
logical_meter()
sort of empty. But users should be able to make their own logical meters by applying formulas. Just to put an early example, it could be something likemy_measure = microgrid.logical_meter("some + formula")
.Beta Was this translation helpful? Give feedback.
All reactions