openclimatefix / ocf_datapipes

OCF's DataPipe based dataloader for training and inference
MIT License
13 stars 11 forks source link

Add pvlib normalization for pseudo-labller #164

Closed jacobbieker closed 1 year ago

jacobbieker commented 1 year ago

Pull Request

Description

This adds normalization by pvlib's poa_global for PV sites in the PV image creator.

Fixes #

How Has This Been Tested?

Unit tests

Checklist:

codecov[bot] commented 1 year ago

Codecov Report

Merging #164 (0449063) into main (4f41343) will increase coverage by 0.21%. The diff coverage is 97.87%.

@@            Coverage Diff             @@
##             main     #164      +/-   ##
==========================================
+ Coverage   78.64%   78.86%   +0.21%     
==========================================
  Files         122      122              
  Lines        4926     4967      +41     
==========================================
+ Hits         3874     3917      +43     
+ Misses       1052     1050       -2     
Impacted Files Coverage Δ
...f_datapipes/transform/xarray/pv/create_pv_image.py 80.39% <97.05%> (+6.78%) :arrow_up:
ocf_datapipes/config/model.py 86.32% <100.00%> (+0.05%) :arrow_up:
ocf_datapipes/load/pv/pv.py 97.87% <100.00%> (+0.16%) :arrow_up:

... and 1 file with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more