openclimatefix / pv-site-api

Site specific API for PV forecasting
5 stars 8 forks source link

add start and end times on forecast and generation #120

Open peterdudfield opened 10 months ago

peterdudfield commented 10 months ago

Pull Request

Description

add start and end filters for generations and forecasts

This one first #119

Fixes #110

How Has This Been Tested?

CI tests

Checklist:

codecov[bot] commented 10 months ago

Codecov Report

Merging #120 (5a016e8) into main (a55d835) will increase coverage by 2.85%. Report is 7 commits behind head on main. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #120      +/-   ##
==========================================
+ Coverage   92.42%   95.28%   +2.85%     
==========================================
  Files          11       11              
  Lines         568      636      +68     
==========================================
+ Hits          525      606      +81     
+ Misses         43       30      -13     
Files Changed Coverage Δ
pv_site_api/__init__.py 100.00% <100.00%> (ø)
pv_site_api/_db_helpers.py 99.21% <100.00%> (+14.11%) :arrow_up:
pv_site_api/convert.py 100.00% <100.00%> (ø)
pv_site_api/main.py 93.92% <100.00%> (+0.36%) :arrow_up:
pv_site_api/utils.py 100.00% <100.00%> (ø)

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