Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Probability typo fix #383

Open
wants to merge 2 commits into
base: feature/config-overhaul
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/akkudoktoreos/devices/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from akkudoktoreos.devices.devicesabc import DevicesBase
from akkudoktoreos.devices.generic import HomeAppliance
from akkudoktoreos.devices.inverter import Inverter
from akkudoktoreos.prediction.interpolator import SelfConsumptionPropabilityInterpolator
from akkudoktoreos.prediction.interpolator import SelfConsumptionProbabilityInterpolator
from akkudoktoreos.utils.datetimeutil import to_duration

logger = get_logger(__name__)
Expand Down Expand Up @@ -164,7 +164,7 @@ def total_losses_wh(self) -> float:
ev: ClassVar[Battery] = Battery(provider_id="GenericBEV")
home_appliance: ClassVar[HomeAppliance] = HomeAppliance(provider_id="GenericDishWasher")
inverter: ClassVar[Inverter] = Inverter(
self_consumption_predictor=SelfConsumptionPropabilityInterpolator,
self_consumption_predictor=SelfConsumptionProbabilityInterpolator,
battery=battery,
provider_id="GenericInverter",
)
Expand Down
4 changes: 2 additions & 2 deletions src/akkudoktoreos/optimization/genetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
)
from akkudoktoreos.devices.generic import HomeAppliance, HomeApplianceParameters
from akkudoktoreos.devices.inverter import Inverter, InverterParameters
from akkudoktoreos.prediction.interpolator import SelfConsumptionPropabilityInterpolator
from akkudoktoreos.prediction.interpolator import SelfConsumptionProbabilityInterpolator
from akkudoktoreos.utils.utils import NumpyEncoder

logger = get_logger(__name__)
Expand Down Expand Up @@ -573,7 +573,7 @@ def optimierung_ems(
)

# 1h Load to Sub 1h Load Distribution -> SelfConsumptionRate
sc = SelfConsumptionPropabilityInterpolator(
sc = SelfConsumptionProbabilityInterpolator(
Path(__file__).parent.resolve() / ".." / "data" / "regular_grid_interpolator.pkl"
)

Expand Down
2 changes: 1 addition & 1 deletion src/akkudoktoreos/prediction/interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from scipy.interpolate import RegularGridInterpolator


class SelfConsumptionPropabilityInterpolator:
class SelfConsumptionProbabilityInterpolator:
def __init__(self, filepath: str | Path):
self.filepath = filepath
# Load the RegularGridInterpolator
Expand Down
4 changes: 2 additions & 2 deletions tests/test_class_ems.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
)
from akkudoktoreos.devices.generic import HomeAppliance, HomeApplianceParameters
from akkudoktoreos.devices.inverter import Inverter, InverterParameters
from akkudoktoreos.prediction.interpolator import SelfConsumptionPropabilityInterpolator
from akkudoktoreos.prediction.interpolator import SelfConsumptionProbabilityInterpolator

start_hour = 1

Expand All @@ -38,7 +38,7 @@ def create_ems_instance(config_eos) -> EnergieManagementSystem:
)

# 1h Load to Sub 1h Load Distribution -> SelfConsumptionRate
sc = SelfConsumptionPropabilityInterpolator(
sc = SelfConsumptionProbabilityInterpolator(
Path(__file__).parent.resolve()
/ ".."
/ "src"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_class_ems_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
)
from akkudoktoreos.devices.generic import HomeAppliance, HomeApplianceParameters
from akkudoktoreos.devices.inverter import Inverter, InverterParameters
from akkudoktoreos.prediction.interpolator import SelfConsumptionPropabilityInterpolator
from akkudoktoreos.prediction.interpolator import SelfConsumptionProbabilityInterpolator

start_hour = 0

Expand All @@ -37,7 +37,7 @@ def create_ems_instance(config_eos) -> EnergieManagementSystem:
)

# 1h Load to Sub 1h Load Distribution -> SelfConsumptionRate
sc = SelfConsumptionPropabilityInterpolator(
sc = SelfConsumptionProbabilityInterpolator(
Path(__file__).parent.resolve()
/ ".."
/ "src"
Expand Down
Loading