openclimatefix / PVNet

PVnet main repo
MIT License
17 stars 3 forks source link

Update app data input to allow 15-minute satellite fallback #45

Closed dfulu closed 1 year ago

dfulu commented 1 year ago

Pull Request

Description

Update the app to allow 15-minute satellite data to be used in app when the 5-minute data is not available. See openclimatefix/ocf_datapipes#209 for related update to ocf_datapipes.

We don't store 15-minute data in the database unless the 5 minute data is not available. I tested this locally by downloading the 5-minute data. I modified this downloaded data so that the newest time stamp was 2 hours before present, and saved this as latest.zarr.zip. I also took the downloaded 5-minute data, filtered it to 15 minutely and named it latest_15.zarr.zip. I then used these to run the app.py and it ran successfully.

Changes:

Checklist:

codecov[bot] commented 1 year ago

Codecov Report

Merging #45 (9fe3e3e) into main (b8f3c2a) will decrease coverage by 0.05%. The diff coverage is 60.00%.

@@            Coverage Diff             @@
##             main      #45      +/-   ##
==========================================
- Coverage   69.50%   69.46%   -0.05%     
==========================================
  Files          22       22              
  Lines        1571     1575       +4     
==========================================
+ Hits         1092     1094       +2     
- Misses        479      481       +2     
Impacted Files Coverage Δ
pvnet/app.py 95.86% <50.00%> (-1.31%) :arrow_down:
pvnet/__init__.py 100.00% <100.00%> (ø)

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