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

Commit e8774f2

Browse files
authored
Fix #716
1 parent bfc91bc commit e8774f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nowcasting_dataset/data_sources/gsp/gsp_data_source.py

+4
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,10 @@ def drop_gsp_by_threshold(
549549

550550
if len(gsp_power) == 0:
551551
return gsp_power, meta_data
552+
553+
# There is an extra GSP in the new data, GSP ID 0 for the national forecast,
554+
# which is not in the metadata, so dropping here
555+
gsp_power = gsp_power.drop(columns=0)
552556

553557
maximum_gsp = gsp_power.max()
554558

0 commit comments

Comments
 (0)