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

pvlib / pvlib-python / 2948 / 4
96%
master: 96%

Build:
DEFAULT BRANCH: master
Ran 01 Mar 2020 03:33PM UTC
Files 66
Run time 6s
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

01 Mar 2020 03:25PM UTC coverage: 94.067% (+0.06%) from 94.01%
CONDA_ENV=py37

push

travis-ci

web-flow
add read pvgis tmy (#907)

* add read_pvgis_tmy

* for files downloaded from pvgis tool
* update tests, api, and docs
* allow commit .csv to pvlib/data

* update what's new with read_pvgis_tmy

* closes #880
* test import from api vs. full namespace path

* py35 no likey fstring in read_pvgis_tmy

* don't use is for string comparison, ditto
* state returns, add see also

* use str in json.load in read_pvgis

* test read_pvgis_tmy_json, don't use binary buffer

* try parse_epw in read_pvgis_tmy first

* since attribute error only occurs for str/path

* more comments, space between pvgis outputformats

* raise ValueError if unknown output format
* test if ValueError raised for bad output format

* trailing new line in pvgis.py

* use `pvgis_format` instead of confusing arg

- infer parser format from file extension for csv, epw, and json
- much more detailed docstring for `pvgis_format`
- update tests for inferring format from extensions as well as failing
 if basic output format or file buffer isn't explicit

* Apply pvgis suggestions from code review to docstring

thanks Cliff!

Co-Authored-By: Cliff Hansen <cwhanse@sandia.gov>

* wrap long lines in read pvgis docstring

* wordsmithing and formatting, hope it's okay
* don't need to index filename to get pvgis_format,
 just use rsplit(',', 1)[-1] to file extension

* use pathlib instead of rsplit in read_pvgis

- TypeError raised if filename is buffer, not ValueError

* python 3.5 has differnet messae for pathlib

- py>3.5: expected str, bytes or os.PathLike object
- py=3.5: argument should be a path or str object

Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>

8324 of 8849 relevant lines covered (94.07%)

0.94 hits per line

Source Files on job 2948.4 (CONDA_ENV=py37)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2520
  • Travis Job 2948.4
  • d6b85c1f on github
  • Prev Job for CONDA_ENV=py37 on master (#2946.4)
  • Next Job for CONDA_ENV=py37 on master (#2956.4)
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