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

pvlib / pvlib-python / 1926
96%

Build:
DEFAULT BRANCH: master
Ran 03 May 2019 02:22PM UTC
Jobs 6
Files 55
Run time 9min
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

pending completion
1926

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)

7055 of 7572 relevant lines covered (93.17%)

5.29 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1926.1 (CONDA_ENV=py27-min) 03 May 2019 02:24PM UTC 0
72.46
Travis Job 1926.1
2 1926.2 (CONDA_ENV=py27) 03 May 2019 02:24PM UTC 0
92.68
Travis Job 1926.2
3 1926.3 (CONDA_ENV=py34) 03 May 2019 02:23PM UTC 0
90.85
Travis Job 1926.3
4 1926.4 (CONDA_ENV=py35) 03 May 2019 02:24PM UTC 0
92.63
Travis Job 1926.4
5 1926.5 (CONDA_ENV=py36 TASK="coverage" DEPLOY_ENV="true") 03 May 2019 02:22PM UTC 0
92.66
Travis Job 1926.5
6 1926.6 (CONDA_ENV=py37) 03 May 2019 02:30PM UTC 0
88.0
Travis Job 1926.6
Source Files on build 1926
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1926
  • a156e6c4 on github
  • Prev Build on master (#1922)
  • Next Build on master (#1927)
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