akkudoktoreos.core.coreabc.PredictionMixin

class akkudoktoreos.core.coreabc.PredictionMixin

Bases: object

Mixin class for managing EOS prediction data.

This class serves as a foundational component for EOS-related classes requiring access to global prediction data. It provides a prediction property that dynamically retrieves the prediction instance, ensuring up-to-date access to prediction results.

Usage:

Subclass this base class to gain access to the prediction attribute, which retrieves the global prediction instance lazily to avoid import-time circular dependencies.

prediction

Property to access the global EOS prediction data.

Type:

Prediction

Example

class MyOptimizationClass(PredictionMixin):
    def analyze_myprediction(self):
        prediction_data = self.prediction.mypredictionresult
        # Perform analysis
__init__()

Methods

__init__()

Attributes

prediction

prediction = Prediction([ElecPriceAkkudoktor([]), ElecPriceEnergyCharts([]), ElecPriceImport([]), FeedInTariffFixed([]), FeedInTariffImport([]), LoadAkkudoktor([]), LoadAkkudoktorAdjusted([]), LoadVrm([]), LoadImport([]), PVForecastAkkudoktor([]), PVForecastVrm([]), PVForecastImport([]), WeatherBrightSky([]), WeatherClearOutside([]), WeatherImport([])])