@@ -261,60 +261,6 @@ def power(self) -> FormulaEngine[Power]:
261261 assert isinstance (engine , FormulaEngine )
262262 return engine
263263
264- @property
265- def production_power (self ) -> FormulaEngine [Power ]:
266- """Fetch the total production power of the batteries in the pool.
267-
268- This formula produces positive values when producing power and 0 otherwise.
269-
270- If a formula engine to calculate this metric is not already running, it will be
271- started.
272-
273- A receiver from the formula engine can be obtained by calling the `new_receiver`
274- method.
275-
276- Returns:
277- A FormulaEngine that will calculate and stream the total production power of
278- all batteries in the pool.
279- """
280- engine = self ._battery_pool ._formula_pool .from_power_formula_generator (
281- "battery_pool_production_power" ,
282- BatteryPowerFormula ,
283- FormulaGeneratorConfig (
284- component_ids = self ._battery_pool ._batteries ,
285- formula_type = FormulaType .PRODUCTION ,
286- ),
287- )
288- assert isinstance (engine , FormulaEngine )
289- return engine
290-
291- @property
292- def consumption_power (self ) -> FormulaEngine [Power ]:
293- """Fetch the total consumption power of the batteries in the pool.
294-
295- This formula produces positive values when consuming power and 0 otherwise.
296-
297- If a formula engine to calculate this metric is not already running, it will be
298- started.
299-
300- A receiver from the formula engine can be obtained by calling the `new_receiver`
301- method.
302-
303- Returns:
304- A FormulaEngine that will calculate and stream the total consumption
305- power of all batteries in the pool.
306- """
307- engine = self ._battery_pool ._formula_pool .from_power_formula_generator (
308- "battery_pool_consumption_power" ,
309- BatteryPowerFormula ,
310- FormulaGeneratorConfig (
311- component_ids = self ._battery_pool ._batteries ,
312- formula_type = FormulaType .CONSUMPTION ,
313- ),
314- )
315- assert isinstance (engine , FormulaEngine )
316- return engine
317-
318264 @property
319265 def soc (self ) -> ReceiverFetcher [Sample [Percentage ]]:
320266 """Fetch the normalized average weighted-by-capacity SoC values for the pool.
0 commit comments