Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/jacob/windnet' into jacob/windnet
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Feb 5, 2024
2 parents 771c08a + e30b0d0 commit 8c9531c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion configs.example/model/wind_multimodal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ nwp_encoders_dict:
conv3d_channels: 32
image_size_pixels: 16


#--------------------------------------------
# Sensor encoder settings
#--------------------------------------------
Expand Down
8 changes: 6 additions & 2 deletions pvnet/models/multimodal/multimodal.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ def __init__(
if wind_history_minutes is None:
wind_history_minutes = history_minutes

self.wind_encoder = wind_encoder(sequence_length=wind_history_minutes // interval_minutes)
self.wind_encoder = wind_encoder(
sequence_length=wind_history_minutes // interval_minutes
)

# Update num features
fusion_input_features += self.wind_encoder.out_features
Expand All @@ -216,7 +218,9 @@ def __init__(
if sensor_history_minutes is None:
sensor_history_minutes = history_minutes

self.sensor_encoder = sensor_encoder(sequence_length=sensor_history_minutes // sensor_interval_minutes)
self.sensor_encoder = sensor_encoder(
sequence_length=sensor_history_minutes // sensor_interval_minutes
)

# Update num features
fusion_input_features += self.sensor_encoder.out_features
Expand Down

0 comments on commit 8c9531c

Please sign in to comment.