14 lines
443 B
Python
14 lines
443 B
Python
from __future__ import annotations
|
|
from EnergyPrice import EnergyPriceBase
|
|
from utils.calendar_pl import gov_energy_prices_shield
|
|
|
|
class TauronG11Provider(EnergyPriceBase):
|
|
def __init__(self, **kwargs):
|
|
super().__init__(**kwargs)
|
|
|
|
def rate(self, ts):
|
|
if gov_energy_prices_shield(ts):
|
|
return 0.62/1.23
|
|
else:
|
|
raise RuntimeError("brak danych dla nie tarczy, trzeba ogarnąć")
|