duplicate line removed (#290)
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
Run Pytest on Pull Request / test (push) Has been cancelled

This commit is contained in:
Normann 2024-12-27 21:42:50 +01:00 committed by GitHub
parent c6da05d57b
commit 09e54b9989
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,8 +117,6 @@ class HourlyElectricityPriceForecast:
return np.array(date_prices) / (1000.0 * 1000.0) + self.charges
return np.array(date_prices) / (1000.0 * 1000.0) + self.charges
def get_average_price_last_7_days(self, end_date_str: Optional[str] = None) -> np.ndarray:
"""Calculate the hourly average electricity price for the last 7 days.