Skip to content

Commit f6443fc

Browse files
committed
2 parents 5db2fef + 6cd44b1 commit f6443fc

30 files changed

+368
-197
lines changed

README.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,24 @@ Please see the [Contributing page](http://pvlib-python.readthedocs.io/en/stable/
111111
The long-term success of pvlib-python requires substantial community support.
112112

113113

114-
License
115-
=======
114+
Citing
115+
======
116+
117+
If you use pvlib-python in a published work, please cite:
118+
119+
William F. Holmgren, Clifford W. Hansen, and Mark A. Mikofski.
120+
"pvlib python: a python package for modeling solar energy systems."
121+
Journal of Open Source Software, 3(29), 884, (2018).
122+
https://doi.org/10.21105/joss.00884
116123

117-
BSD 3-clause
124+
Please also cite the DOI corresponding to the specific version of
125+
pvlib-python that you used. pvlib-python DOIs are listed at
126+
[Zenodo.org](https://zenodo.org/search?page=1&size=20&q=conceptrecid:593284&all_versions&sort=-version)
118127

128+
If you use pvlib-python in a commercial or publicly-available application, please
129+
consider displaying one of the "powered by pvlib" logos:
130+
131+
<img src="docs/sphinx/source/_images/pvlib_powered_logo_vert.png" width="300"><img src="docs/sphinx/source/_images/pvlib_powered_logo_horiz.png" width="300">
119132

120133
Getting support
121134
===============
@@ -133,19 +146,12 @@ change something about pvlib, then please make an issue on our
133146
[GitHub issues page](https://github.com/pvlib/pvlib-python/issues).
134147

135148

136-
Citing
137-
======
138149

139-
If you use pvlib-python in a published work, please cite:
150+
License
151+
=======
140152

141-
William F. Holmgren, Clifford W. Hansen, and Mark A. Mikofski.
142-
"pvlib python: a python package for modeling solar energy systems."
143-
Journal of Open Source Software, 3(29), 884, (2018).
144-
https://doi.org/10.21105/joss.00884
153+
BSD 3-clause.
145154

146-
Please also cite the DOI corresponding to the specific version of
147-
pvlib-python that you used. pvlib-python DOIs are listed at
148-
[Zenodo.org](https://zenodo.org/search?page=1&size=20&q=conceptrecid:593284&all_versions&sort=-version)
149155

150156
NumFOCUS
151157
========

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
vmImage: ubuntu-16.04
1313

1414

15-
- template: ci/azure/posix.yml
15+
- template: ci/azure/posix_no_39.yml
1616
parameters:
1717
name: Test_bare_macOS
1818
vmImage: macOS-10.14

ci/azure/posix_no_39.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
parameters:
2+
name: ''
3+
vmImage: ''
4+
5+
jobs:
6+
- job: ${{ parameters.name }}
7+
pool:
8+
vmImage: ${{ parameters.vmImage }}
9+
strategy:
10+
matrix:
11+
Python36:
12+
python.version: '3.6'
13+
Python37:
14+
python.version: '3.7'
15+
Python38:
16+
python.version: '3.8'
17+
18+
steps:
19+
- task: UsePythonVersion@0
20+
inputs:
21+
versionSpec: '$(python.version)'
22+
23+
- script: |
24+
pip install pytest pytest-cov pytest-mock requests-mock pytest-timeout pytest-azurepipelines pytest-rerunfailures pytest-remotedata
25+
pip install -e .
26+
pytest pvlib --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
27+
displayName: 'Test with pytest'
28+
29+
- task: PublishTestResults@2
30+
condition: succeededOrFailed()
31+
inputs:
32+
testResultsFiles: '**/test-*.xml'
33+
testRunTitle: 'Publish test results for Python $(python.version)'
34+
35+
- task: PublishCodeCoverageResults@1
36+
inputs:
37+
codeCoverageTool: Cobertura
38+
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
39+
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'

ci/requirements-py36-min.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ dependencies:
55
- coveralls
66
- nose
77
- pip
8+
- pytables # tables when using pip+PyPI
89
- pytest
910
- pytest-cov
1011
- pytest-mock
@@ -20,3 +21,4 @@ dependencies:
2021
- pytest-rerunfailures # conda version is >3.6
2122
- pytest-remotedata # conda package is 0.3.0, needs > 0.3.1
2223
- requests-mock
24+
- numexpr==2.6.2 # needed for tables, but newest version is not compatible with numpy 1.12

ci/requirements-py36.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ channels:
33
- defaults
44
- conda-forge
55
dependencies:
6+
- blosc=1.14.3 # newest version breaks tables (pytables) on windows
67
- cdsapi
78
- coveralls
89
- cython

ci/requirements-py37.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ channels:
33
- defaults
44
- conda-forge
55
dependencies:
6+
- blosc=1.14.3 # newest version breaks tables (pytables) on windows
67
- cdsapi
78
- coveralls
89
- cython
125 KB
Loading
109 KB
Loading

docs/sphinx/source/index.rst

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ functions and classes for simulating the performance of photovoltaic
99
energy systems. pvlib python was originally ported from the PVLIB MATLAB
1010
toolbox developed at Sandia National Laboratories and it implements many
1111
of the models and methods developed at the Labs. More information on
12-
Sandia Labs PV performance modeling programs can be found at
13-
https://pvpmc.sandia.gov/. We collaborate with the PVLIB MATLAB project,
12+
Sandia Labs PV performance modeling programs can be found at the `PVPMC <https://pvpmc.sandia.gov/>`_. We collaborate with the PVLIB MATLAB project,
1413
but operate independently of it.
1514

1615
The source code for pvlib python is hosted on `github
@@ -50,6 +49,16 @@ Please also cite the DOI corresponding to the specific version of
5049
pvlib python that you used. pvlib python DOIs are listed at
5150
`Zenodo.org <https://zenodo.org/search?page=1&size=20&q=conceptrecid:593284&all_versions&sort=-version>`_
5251

52+
If you use pvlib-python in a commercial or publicly-available
53+
application, please consider displaying one of the "powered by pvlib"
54+
logos:
55+
56+
.. image:: _images/pvlib_powered_logo_horiz.png
57+
:width: 300
58+
59+
.. image:: _images/pvlib_powered_logo_vert.png
60+
:width: 300
61+
5362
Additional pvlib python publications include:
5463

5564
* J. S. Stein, “The photovoltaic performance modeling
@@ -73,6 +82,10 @@ Additional pvlib python publications include:
7382
"An Open Source Solar Power Forecasting Tool Using PVLIB-Python,"
7483
in 43rd Photovoltaic Specialists Conference, 2016.
7584

85+
License
86+
=======
87+
88+
`BSD 3-clause <https://github.com/pvlib/pvlib-python/LICENSE>`_.
7689

7790
NumFOCUS
7891
========
@@ -83,7 +96,6 @@ pvlib python is a `NumFOCUS Affiliated Project <https://numfocus.org/sponsored-p
8396
:target: https://numfocus.org/sponsored-projects/affiliated-projects
8497
:alt: NumFocus Affliated Projects
8598

86-
8799
Contents
88100
========
89101

docs/sphinx/source/introtutorial.rst

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,13 @@ the :ref:`iotools` module. In this example we will be using PVGIS, one of the
5252
data sources available, to retrieve a Typical Meteorological Year (TMY) which
5353
includes irradiation, temperature and wind speed.
5454

55-
.. note:: PVGIS uses different naming conventions, so it is required to rename
56-
the weather data variables before using them. Data is already UTC-localized,
57-
so conversion to local timezone is optional.
58-
5955
.. ipython:: python
6056
61-
variables_translation = {
62-
"Gb(n)": "dni",
63-
"G(h)": "ghi",
64-
"Gd(h)": "dhi",
65-
"T2m": "temp_air",
66-
"WS10m": "wind_speed",
67-
}
6857
tmys = []
6958
for location in coordinates:
7059
latitude, longitude, name, altitude, timezone = location
71-
weather = pvlib.iotools.get_pvgis_tmy(latitude, longitude)[0]
72-
weather = weather.rename(columns=variables_translation)
60+
weather = pvlib.iotools.get_pvgis_tmy(latitude, longitude,
61+
map_variables=True)[0]
7362
weather.index.name = "utc_time"
7463
tmys.append(weather)
7564

0 commit comments

Comments
 (0)