openclimatefix / nowcasting_datamodel

Datamodel for the nowcasting project
6 stars 6 forks source link

add function to sum up gsp values #203

Closed peterdudfield closed 1 year ago

peterdudfield commented 1 year ago

Pull Request

Description

Function to read all gsp values and sum them up

Helps with https://github.com/openclimatefix/uk-analysis-dashboard/issues/29

How Has This Been Tested?

Added a test

Checklist:

codecov[bot] commented 1 year ago

Codecov Report

Merging #203 (7130911) into main (2fe82ef) will increase coverage by 0.05%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #203      +/-   ##
==========================================
+ Coverage   94.83%   94.89%   +0.05%     
==========================================
  Files          27       27              
  Lines        1627     1644      +17     
==========================================
+ Hits         1543     1560      +17     
  Misses         84       84              
Impacted Files Coverage Δ
nowcasting_datamodel/__init__.py 100.00% <100.00%> (ø)
nowcasting_datamodel/read/read_gsp.py 100.00% <100.00%> (ø)

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