Skip to content

Commit b35023e

Browse files
committed
Remove internal formula helper types from the public interface
This is about the `FormulaEnginePool` and `ResampledFormulaBuilder` which became public when `formula_engine` became a public module in the previous commit. Signed-off-by: Sahas Subramanian <[email protected]>
1 parent a7d04e5 commit b35023e

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/frequenz/sdk/timeseries/battery_pool/_battery_pool_reference_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from ...actor.power_distributing._battery_pool_status import BatteryStatus
1818
from ...microgrid import connection_manager
1919
from ...microgrid.component import ComponentCategory
20-
from ..formula_engine import FormulaEnginePool
20+
from ..formula_engine._formula_engine_pool import FormulaEnginePool
2121
from ._methods import MetricAggregator
2222

2323

src/frequenz/sdk/timeseries/ev_charger_pool/_ev_charger_pool.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
from ...microgrid.component import ComponentCategory, ComponentMetricId
2121
from .. import Sample, Sample3Phase
2222
from .._quantities import Current, Power, Quantity
23-
from ..formula_engine import FormulaEngine, FormulaEngine3Phase, FormulaEnginePool
23+
from ..formula_engine import FormulaEngine, FormulaEngine3Phase
24+
from ..formula_engine._formula_engine_pool import FormulaEnginePool
2425
from ..formula_engine._formula_generators import (
2526
EVChargerCurrentFormula,
2627
EVChargerPowerFormula,

src/frequenz/sdk/timeseries/formula_engine/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,8 @@
44
"""A formula engine for applying formulas."""
55

66
from ._formula_engine import FormulaEngine, FormulaEngine3Phase
7-
from ._formula_engine_pool import FormulaEnginePool
8-
from ._resampled_formula_builder import ResampledFormulaBuilder
97

108
__all__ = [
119
"FormulaEngine",
1210
"FormulaEngine3Phase",
13-
"FormulaEnginePool",
14-
"ResampledFormulaBuilder",
1511
]

src/frequenz/sdk/timeseries/logical_meter/_logical_meter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
from ...actor import ChannelRegistry, ComponentMetricRequest
1212
from ...microgrid.component import ComponentMetricId
1313
from .._quantities import Current, Power, Quantity
14-
from ..formula_engine import FormulaEngine, FormulaEngine3Phase, FormulaEnginePool
14+
from ..formula_engine import FormulaEngine, FormulaEngine3Phase
15+
from ..formula_engine._formula_engine_pool import FormulaEnginePool
1516
from ..formula_engine._formula_generators import (
1617
CHPPowerFormula,
1718
ConsumerPowerFormula,

tests/timeseries/_formula_engine/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
from frequenz.sdk.microgrid.component import ComponentMetricId
1414
from frequenz.sdk.timeseries import Sample
1515
from frequenz.sdk.timeseries._quantities import QuantityT
16-
from frequenz.sdk.timeseries.formula_engine import ResampledFormulaBuilder
16+
from frequenz.sdk.timeseries.formula_engine._resampled_formula_builder import (
17+
ResampledFormulaBuilder,
18+
)
1719

1820

1921
def get_resampled_stream(

0 commit comments

Comments
 (0)