Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Dec 20, 2024
1 parent a4536fe commit d662544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion india_forecast_app/models/pvnet/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def predict(self, site_id: str, timestamp: dt.datetime):

if self.name == "windnet_ad_sites_generation_delay":
# this is a bit of hack, but it's important to do what was done in training
batch[BatchKey.wind][int(batch[:, BatchKey.wind_t0_idx])] = -1
batch[BatchKey.wind][:, int(batch[BatchKey.wind_t0_idx])] = -1

# save batch
save_batch(batch=batch, i=i, model_name=self.name, site_uuid=self.site_uuid)
Expand Down

0 comments on commit d662544

Please sign in to comment.