openclimatefix / ocf_datapipes

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

Add PV Metadata Image Datapipe #163

Closed jacobbieker closed 1 year ago

jacobbieker commented 1 year ago

Pull Request

Description

Adds a datapipe to get the PV Metadata and add it as an image, same as the PV Image creator, for use with the pseudo irradiance forecastor/labeller

Fixes #160

How Has This Been Tested?

Unit tests

Checklist:

codecov[bot] commented 1 year ago

Codecov Report

Merging #163 (6c8d20e) into main (5dcde3e) will decrease coverage by 0.15%. The diff coverage is 65.62%.

:exclamation: Current head 6c8d20e differs from pull request most recent head 883bc4a. Consider uploading reports for the commit 883bc4a to get more accurate results

@@            Coverage Diff             @@
##             main     #163      +/-   ##
==========================================
- Coverage   78.54%   78.40%   -0.15%     
==========================================
  Files         121      122       +1     
  Lines        4834     4922      +88     
==========================================
+ Hits         3797     3859      +62     
- Misses       1037     1063      +26     
Impacted Files Coverage Δ
ocf_datapipes/training/pseudo_irradience.py 0.00% <0.00%> (ø)
...apipes/transform/xarray/pv/create_pv_meta_image.py 73.23% <73.23%> (ø)
ocf_datapipes/load/pv/pv.py 97.70% <100.00%> (+0.03%) :arrow_up:
ocf_datapipes/load/pv/utils.py 94.73% <100.00%> (+0.61%) :arrow_up:
ocf_datapipes/transform/xarray/__init__.py 100.00% <100.00%> (ø)
...f_datapipes/transform/xarray/pv/create_pv_image.py 73.61% <100.00%> (+1.14%) :arrow_up:

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