openclimatefix / nowcasting_datamodel

Datamodel for the nowcasting project
6 stars 6 forks source link

add gsp model #11

Closed peterdudfield closed 2 years ago

peterdudfield commented 2 years ago

Pull Request

Description

moved 'Location' to models/gsp.py

Fixes #10

How Has This Been Tested?

added unittests

Checklist:

codecov-commenter commented 2 years ago

Codecov Report

Merging #11 (9fce8af) into main (46de7d6) will decrease coverage by 0.99%. The diff coverage is 94.85%.

@@            Coverage Diff             @@
##             main      #11      +/-   ##
==========================================
- Coverage   98.61%   97.61%   -1.00%     
==========================================
  Files          11       16       +5     
  Lines         360      503     +143     
==========================================
+ Hits          355      491     +136     
- Misses          5       12       +7     
Impacted Files Coverage Δ
nowcasting_datamodel/read/read.py 100.00% <ø> (ø)
nowcasting_datamodel/connection.py 93.75% <80.00%> (+4.86%) :arrow_up:
nowcasting_datamodel/models/gsp.py 88.13% <88.13%> (ø)
nowcasting_datamodel/migrations/app.py 96.87% <96.87%> (ø)
nowcasting_datamodel/__init__.py 100.00% <100.00%> (ø)
nowcasting_datamodel/fake.py 100.00% <100.00%> (ø)
nowcasting_datamodel/models/__init__.py 100.00% <100.00%> (ø)
nowcasting_datamodel/models/base.py 100.00% <100.00%> (ø)
nowcasting_datamodel/models/models.py 100.00% <100.00%> (ø)
nowcasting_datamodel/models/pv.py 100.00% <100.00%> (ø)
... and 2 more

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