openclimatefix / pv-site-api

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

make sure forecast and actuals are rounded to 2 decimals #109

Closed peterdudfield closed 10 months ago

peterdudfield commented 10 months ago

Pull Request

Description

Round to 2 d.p

Helps with https://github.com/openclimatefix/pv-site-api/issues/102

How Has This Been Tested?

CI tests

Checklist:

codecov[bot] commented 10 months ago

Codecov Report

Merging #109 (34ad92b) into main (2f13057) will increase coverage by 0.11%. Report is 1 commits behind head on main. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #109      +/-   ##
==========================================
+ Coverage   93.55%   93.66%   +0.11%     
==========================================
  Files          10       10              
  Lines         450      458       +8     
==========================================
+ Hits          421      429       +8     
  Misses         29       29              
Files Changed Coverage Δ
pv_site_api/__init__.py 100.00% <100.00%> (ø)
pv_site_api/pydantic_models.py 100.00% <100.00%> (ø)

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