openclimatefix / pv-site-datamodel

Datamodel for PV sites
MIT License
2 stars 9 forks source link

add get_sites_from_user function. +tests #84

Closed peterdudfield closed 1 year ago

peterdudfield commented 1 year ago

Pull Request

Description

get sites from user, with lat and lon filter Fixes #83

Moved this from pv-site-api

How Has This Been Tested?

CI tests

Checklist:

codecov[bot] commented 1 year ago

Codecov Report

Merging #84 (251cca0) into main (6fa4d33) will increase coverage by 0.11%. Report is 1 commits behind head on main. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #84      +/-   ##
==========================================
+ Coverage   97.85%   97.97%   +0.11%     
==========================================
  Files          12       12              
  Lines         327      346      +19     
==========================================
+ Hits          320      339      +19     
  Misses          7        7              
Files Changed Coverage Δ
pvsite_datamodel/read/__init__.py 100.00% <ø> (ø)
pvsite_datamodel/__init__.py 100.00% <100.00%> (ø)
pvsite_datamodel/pydantic_models.py 100.00% <100.00%> (ø)
pvsite_datamodel/read/site.py 96.00% <100.00%> (+1.55%) :arrow_up:

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

:loudspeaker: Have feedback on the report? Share it here.