Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
Fix #716
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker authored Aug 8, 2022
1 parent bfc91bc commit e8774f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nowcasting_dataset/data_sources/gsp/gsp_data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,10 @@ def drop_gsp_by_threshold(

if len(gsp_power) == 0:
return gsp_power, meta_data

# There is an extra GSP in the new data, GSP ID 0 for the national forecast,
# which is not in the metadata, so dropping here
gsp_power = gsp_power.drop(columns=0)

maximum_gsp = gsp_power.max()

Expand Down

0 comments on commit e8774f2

Please sign in to comment.