openclimatefix / nowcasting_datamodel

Datamodel for the nowcasting project
6 stars 6 forks source link

add update function #54

Closed peterdudfield closed 2 years ago

peterdudfield commented 2 years ago

Pull Request

Description

Create Forecast that has all the latest forecast values in it. This means we can load this forecast and get all the value in the past.

Fixes #2

How Has This Been Tested?

Checklist:

codecov-commenter commented 2 years ago

Codecov Report

Merging #54 (f67f4c8) into main (37dd7f9) will increase coverage by 0.04%. The diff coverage is 98.85%.

@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
+ Coverage   98.44%   98.49%   +0.04%     
==========================================
  Files          16       17       +1     
  Lines         645      730      +85     
==========================================
+ Hits          635      719      +84     
- Misses         10       11       +1     
Impacted Files Coverage Δ
nowcasting_datamodel/models/gsp.py 93.65% <ø> (ø)
nowcasting_datamodel/national.py 92.10% <ø> (ø)
nowcasting_datamodel/update.py 97.43% <97.43%> (ø)
nowcasting_datamodel/__init__.py 100.00% <100.00%> (ø)
nowcasting_datamodel/models/models.py 100.00% <100.00%> (ø)
nowcasting_datamodel/read/read.py 99.31% <100.00%> (+0.03%) :arrow_up:
nowcasting_datamodel/save.py 100.00% <100.00%> (ø)

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