From c791ecb6830649c46337c065dedbbfd6bb4ef3f8 Mon Sep 17 00:00:00 2001 From: Andreas Date: Thu, 26 Dec 2024 08:12:56 +0100 Subject: [PATCH] Merge --- src/akkudoktoreos/prediction/price_forecast.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/akkudoktoreos/prediction/price_forecast.py b/src/akkudoktoreos/prediction/price_forecast.py index c35edee..f9d86f6 100644 --- a/src/akkudoktoreos/prediction/price_forecast.py +++ b/src/akkudoktoreos/prediction/price_forecast.py @@ -166,12 +166,6 @@ class HourlyElectricityPriceForecast: axis=0, weights=np.array([1, 2, 4, 8, 16, 32, 64]) / np.sum(np.array([1, 2, 4, 8, 16, 32, 64])), ) - return average_prices - average_prices = np.average( - price_matrix, - axis=0, - weights=np.array([1, 2, 4, 8, 16, 32, 64]) / np.sum(np.array([1, 2, 4, 8, 16, 32, 64])), - ) final_weights = np.linspace(1, 0, price_matrix.shape[1])