@@ -63,6 +63,7 @@ def __init__(
6363 pv_interval_minutes : int = 5 ,
6464 sat_interval_minutes : int = 5 ,
6565 sensor_interval_minutes : int = 30 ,
66+ wind_interval_minutes : int = 15 ,
6667 image_embedding_dim : Optional [int ] = 318 ,
6768 timestep_intervals_to_plot : Optional [list [int ]] = None ,
6869 ):
@@ -107,6 +108,7 @@ def __init__(
107108 optimizer: Optimizer factory function used for network.
108109 target_key: The key of the target variable in the batch.
109110 interval_minutes: The interval between each sample of the target data
111+ wind_interval_minutes: The interval between each sample of the wind data
110112 wind_encoder: Encoder for wind data
111113 wind_history_minutes: Length of recent wind data used as input.
112114 pv_interval_minutes: The interval between each sample of the PV data
@@ -204,7 +206,7 @@ def __init__(
204206 assert pv_history_minutes is not None
205207
206208 self .pv_encoder = pv_encoder (
207- sequence_length = pv_history_minutes // pv_interval_minutes ,
209+ sequence_length = pv_history_minutes // pv_interval_minutes + 1 ,
208210 )
209211
210212 # Update num features
@@ -215,7 +217,7 @@ def __init__(
215217 wind_history_minutes = history_minutes
216218
217219 self .wind_encoder = wind_encoder (
218- sequence_length = wind_history_minutes // interval_minutes
220+ sequence_length = wind_history_minutes // wind_interval_minutes + 1
219221 )
220222
221223 # Update num features
@@ -226,7 +228,7 @@ def __init__(
226228 sensor_history_minutes = history_minutes
227229
228230 self .sensor_encoder = sensor_encoder (
229- sequence_length = sensor_history_minutes // sensor_interval_minutes
231+ sequence_length = sensor_history_minutes // sensor_interval_minutes + 1
230232 )
231233
232234 # Update num features
0 commit comments