• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pvlib / pvlib-python / 1926 / 6
96%
master: 96%

Build:
DEFAULT BRANCH: master
Ran 03 May 2019 02:30PM UTC
Files 55
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 May 2019 02:15PM UTC coverage: 87.995% (+0.1%) from 87.882%
CONDA_ENV=py37

push

travis-ci

wholmgren
ENH: Create psm3.py (#694)

* Create psm3.py

initial concept for psm3 reader

* fix well known text for geometric POINT

* need to strip all leading whitespace, and only one whitespace between,
and longitude is first, then latitude
* fix list() not []
* fix ATTRIBUTES and URL
* coerce all to float, clean up types in header, cast datevec columns to
int, create datetimeindex from datevec columns, set index, get errors
from json when returning HTTPError

Signed-off-by: Mark Mikofski <bwana.marko@yahoo.com>

* TST: add test for getting psm3

* update docs, closes #592

* stickler, default interval

* add psm3 to api

* use astype, fix typos, change param names to match API

* use pandas, better variable names, comments, set all dtypes

* stickler fixes

* api_key as param

* TST: decorate test_get_psm3 with needs_pandas_0_22

* api_key and email are required according to NREL

* other params full name and affiliation are kwargs
* set reason to pvlib something as suggested by NREL
* catch some errors, like 403 forbidden, are in content, not json, only
some errors like bad well known text WKT gemetry are in JSON
* use python-2 json decode error
* add another test to capture both bad API key and bad WKT
* add note on how to register for key, why they need email, and when it
would be used, and warning about DEMO_KEY being rate limited

Signed-off-by: Mark Mikofski <bwana.marko@yahoo.com>

* stickler: remove unused JSON import

* remove non-ASCII quotation marks around DEMO_KEY in warning

* remove "required" for api_key param in get_psm3

Co-Authored-By: mikofski <bwana.marko@yahoo.com>

* rewording for "email" param in get_psm3

Co-Authored-By: mikofski <bwana.marko@yahoo.com>

* clarify WKT formating and errors

* in raise docstring, change "returns" to "raises", and clarify that
 either r.json()['errors'] or r.content is the exception arg depending
 on the type of HTTP error, and give examples... (continued)

6663 of 7572 relevant lines covered (88.0%)

0.88 hits per line

Source Files on job 1926.6 (CONDA_ENV=py37)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1744
  • Travis Job 1926.6
  • a156e6c4 on github
  • Prev Job for CONDA_ENV=py37 on master (#1922.6)
  • Next Job for CONDA_ENV=py37 on master (#1927.6)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc