nowcasting_dataset icon indicating copy to clipboard operation
nowcasting_dataset copied to clipboard

Bug: `drop_pv_systems_which_produce_overnight` expects normalised data, but it doesn't receive normalised data.

Open JackKelly opened this issue 3 years ago • 3 comments
trafficstars

Describe the bug nowcasting_dataset.data_sources.pv.pv_data_source.drop_pv_systems_which_produce_overnight expected power values to be normalised. But, when drop_pv_systems_which_produce_overnight is called, it is given raw un-normalised power values.

JackKelly avatar May 17 '22 15:05 JackKelly

Why does it matter if its normalised or not?

peterdudfield avatar Jun 23 '22 14:06 peterdudfield

Here's the code (nowcasting_dataset/data_sources/pv/pv_data_source.py):

image

Note that the threshold (defined on line 546) is a "normalised" threshold. If the PV power isn't normalised, then the threshold is way too low to have much effect!

I'm pretty confident this is a "real" bug :slightly_smiling_face:

JackKelly avatar Jun 30 '22 13:06 JackKelly

ah i forgot about the threshold - thanks

peterdudfield avatar Jun 30 '22 13:06 peterdudfield