mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-04-19 08:55:15 +00:00
Prediction = 0 führte zu Fehler
This commit is contained in:
parent
0d683a7bdd
commit
e4b7a29352
@ -125,6 +125,6 @@ class HourlyElectricityPriceForecast:
|
||||
price_list.extend(daily_prices)
|
||||
start_date += timedelta(days=1)
|
||||
|
||||
price_list = repeat_to_shape(np.array(price_list),(self.prediction_hours,))
|
||||
|
||||
if self.prediction_hours>0:
|
||||
price_list = repeat_to_shape(np.array(price_list),(self.prediction_hours,))
|
||||
return price_list
|
||||
|
Loading…
x
Reference in New Issue
Block a user