Skip to content

Commit

Permalink
Fix wind history minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Jan 8, 2024
1 parent f042220 commit 023e405
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pvnet/models/multimodal/multimodal.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(
nwp_forecast_minutes: Optional[int] = None,
nwp_history_minutes: Optional[int] = None,
pv_history_minutes: Optional[int] = None,
sensor_history_minutes: Optional[int] = None,
wind_history_minutes: Optional[int] = None,
optimizer: AbstractOptimizer = pvnet.optimizers.Adam(),
target_key: str = "gsp",
):
Expand Down Expand Up @@ -186,11 +186,11 @@ def __init__(
fusion_input_features += self.pv_encoder.out_features

if self.include_wind:
if sensor_history_minutes is None:
sensor_history_minutes = history_minutes
if wind_history_minutes is None:
wind_history_minutes = history_minutes

self.wind_encoder = wind_encoder(
sequence_length=self.history_len_30 # sensor_history_minutes // 30 + 1,
sequence_length=self.history_len_30 # wind_history_minutes // 30 + 1,
# Sensors are currently resampled to 30min
)

Expand Down

0 comments on commit 023e405

Please sign in to comment.