openclimatefix / PVConsumer

Consumer PV data from various sources
Apache License 2.0
3 stars 1 forks source link

remove last row if 0, but not the second to last row #27

Closed peterdudfield closed 2 years ago

peterdudfield commented 2 years ago

Pull Request

Description

solve pvoutput.org bug remove last data point if 0, if second to last point is not zero

Fixes #

How Has This Been Tested?

If your changes affect data processing, have you plotted any changes? i.e. have you done a quick sanity check?

Checklist:

codecov-commenter commented 2 years ago

Codecov Report

Merging #27 (5ac0f3e) into main (e2f7292) will increase coverage by 1.98%. The diff coverage is 92.85%.

@@            Coverage Diff             @@
##             main      #27      +/-   ##
==========================================
+ Coverage   94.18%   96.17%   +1.98%     
==========================================
  Files           4        4              
  Lines         172      183      +11     
==========================================
+ Hits          162      176      +14     
+ Misses         10        7       -3     
Impacted Files Coverage Δ
pvconsumer/utils.py 93.54% <92.00%> (-6.46%) :arrow_down:
pvconsumer/app.py 95.94% <100.00%> (+5.14%) :arrow_up:

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more