Skip to content

Commit 3dbbefd

Browse files
committed
Merge branch 'main' of https://github.com/pvlib/pvlib-python into sdm_convert
2 parents 1901b20 + 0f324ab commit 3dbbefd

24 files changed

+35315
-35311
lines changed

.github/workflows/asv_check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
shell: bash -el {0}
1717

1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 0
2222

2323
- name: Install Python
24-
uses: actions/setup-python@v3
24+
uses: actions/setup-python@v5
2525
with:
2626
python-version: '3.9'
2727

.github/workflows/flake8.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- name: Checkout source
9-
uses: actions/checkout@v3
9+
uses: actions/checkout@v4
1010
- name: Install Python 3.11
11-
uses: actions/setup-python@v4
11+
uses: actions/setup-python@v5
1212
with:
1313
python-version: '3.11'
1414
- name: Install Flake8 5.0.4 linter

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
# fetch all commits and tags so versioneer works
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121

2222
- name: Set up Python
23-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v5
2424
with:
2525
python-version: 3.9
2626

.github/workflows/pytest-remote-data.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,18 @@ jobs:
6666
if: (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'remote-data')) || (github.event_name == 'push')
6767

6868
steps:
69-
- uses: actions/checkout@v3
69+
- uses: actions/checkout@v4
7070
if: github.event_name == 'pull_request_target'
7171
# pull_request_target runs in the context of the target branch (pvlib/main),
7272
# but what we need is the hypothetical merge commit from the PR:
7373
with:
7474
ref: "refs/pull/${{ github.event.number }}/merge"
7575

76-
- uses: actions/checkout@v2
76+
- uses: actions/checkout@v4
7777
if: github.event_name == 'push'
7878

7979
- name: Set up conda environment
80-
uses: conda-incubator/setup-miniconda@v2
80+
uses: conda-incubator/setup-miniconda@v3
8181
with:
8282
activate-environment: test_env
8383
environment-file: ${{ env.REQUIREMENTS }}

.github/workflows/pytest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
steps:
3232
# We check out only a limited depth and then pull tags to save time
3333
- name: Checkout source
34-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3535
with:
3636
fetch-depth: 100
3737

@@ -60,7 +60,7 @@ jobs:
6060

6161
- name: Install bare Python ${{ matrix.python-version }}${{ matrix.suffix }}
6262
if: matrix.environment-type == 'bare'
63-
uses: actions/setup-python@v4
63+
uses: actions/setup-python@v5
6464
with:
6565
python-version: ${{ matrix.python-version }}
6666

docs/sphinx/source/whatsnew.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ What's New
66

77
These are new features and improvements of note in each release.
88

9+
.. include:: whatsnew/v0.11.2.rst
910
.. include:: whatsnew/v0.11.1.rst
1011
.. include:: whatsnew/v0.11.0.rst
1112
.. include:: whatsnew/v0.10.5.rst
Lines changed: 41 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,40 @@
11
.. _whatsnew_01110:
22

33

4-
v0.11.1 (Anticipated Sep, 2024)
5-
-------------------------------
6-
7-
Deprecations
8-
~~~~~~~~~~~~
9-
4+
v0.11.1 (September 26, 2024)
5+
----------------------------
106

117
Enhancements
128
~~~~~~~~~~~~
139
* Add new function to calculate the average photon energy,
14-
:py:func:`pvlib.spectrum.average_photon_energy`.
10+
:py:func:`~pvlib.spectrum.average_photon_energy`.
1511
(:issue:`2135`, :pull:`2140`)
1612
* Add new losses function that accounts for non-uniform irradiance on bifacial
17-
modules, :py:func:`pvlib.bifacial.power_mismatch_deline`.
13+
modules, :py:func:`~pvlib.bifacial.power_mismatch_deline`.
1814
(:issue:`2045`, :pull:`2046`)
1915
* Add new parameters for min/max absolute air mass to
20-
:py:func:`pvlib.spectrum.spectral_factor_firstsolar`.
16+
:py:func:`~pvlib.spectrum.spectral_factor_firstsolar`.
2117
(:issue:`2086`, :pull:`2100`)
2218
* Add ``roll_utc_offset`` and ``coerce_year`` arguments to
23-
:py:func:`pvlib.iotools.get_pvgis_tmy` to allow user to specify time zone,
19+
:py:func:`~pvlib.iotools.get_pvgis_tmy` to allow user to specify time zone,
2420
rotate indices of TMY to begin at midnight, and force indices to desired
2521
year. (:issue:`2139`, :pull:`2138`)
2622
* Restructured the pvlib/spectrum folder by breaking up the contents of
2723
pvlib/spectrum/mismatch.py into pvlib/spectrum/mismatch.py,
2824
pvlib/spectrum/irradiance.py, and
2925
pvlib/spectrum/response.py. (:issue:`2125`, :pull:`2136`, :pull:`2151`)
3026
* Added function for calculating wind speed at different heights,
31-
:py:func:`pvlib.atmosphere.windspeed_powerlaw`.
27+
:py:func:`~pvlib.atmosphere.windspeed_powerlaw`.
3228
(:issue:`2118`, :pull:`2124`)
29+
* ``delta_t`` can now be specified with an array in the SPA functions.
30+
The numba implementation now also allows calculation of ``delta_t``
31+
internally. (:issue:`2189`, :pull:`2190`)
3332
* The multithreaded SPA functions no longer emit a warning when calculating
3433
solar positions for short time series. (:pull:`2170`)
35-
* Implemented closed-form solution for alpha in :py:func:`pvlib.clearsky.detect_clearsky`,
36-
obviating the call to scipy.optimize that was prone to runtime errors and minimizing
34+
* Implemented closed-form solution for alpha in :py:func:`~pvlib.clearsky.detect_clearsky`,
35+
obviating the call to scipy.optimize, which was prone to runtime errors, and minimizing
3736
computation. (:issue:`2171`, :issue:`2216`, :pull:`2217`).
3837

39-
4038
Bug fixes
4139
~~~~~~~~~
4240
* To prevent simulation output from differing slightly based on the time zone
@@ -55,27 +53,30 @@ Bug fixes
5553

5654
Testing
5755
~~~~~~~
58-
56+
* Updated the tests for :py:func:`~pvlib.iotools.get_pvgis_tmy`
57+
and :py:func:`~pvlib.iotools.read_pvgis_tmy` as the default
58+
API endpoint has changed from 5.1 to 5.2. (:pull:`2222`)
59+
* Removed unused ``times`` input from ``dni_et`` fixture. (:issue:`2105`, :pull:`2156`)
5960

6061
Documentation
6162
~~~~~~~~~~~~~
62-
* Added gallery example demonstrating the application of
63-
several spectral mismatch factor models.
64-
(:issue:`2107`, :pull:`2114`)
65-
* Added gallery example demonstrating the application of
66-
:py:func:`~pvlib.spectrum.average_photon_energy`. (:issue:`2194`, :pull:`2206`)
67-
* Added gallery example on calculating cell temperature for
68-
floating PV. (:pull:`2110`)
69-
* Added gallery example demonstrating how to use
70-
different Perez coefficients in a ModelChain.
71-
(:issue:`2127`, :pull:`2148`)
72-
* Fixed examples in :py:func:`pvlib.shading.shaded_fraction1d`. (:pull:`#2215`)
73-
74-
* Removed unused "times" input from dni_et() function (:issue:`2105`)
75-
* Updated :py:func:`pvlib.irradiance.haydavies` to include equation variable
76-
definitions and a new "notes" section (:issue:`2183`, :pull:`2191`)
63+
* Added new gallery example pages for:
64+
65+
- Demonstrating the application of several spectral mismatch factor models.
66+
(:issue:`2107`, :pull:`2114`)
67+
- Demonstrating the application of :py:func:`~pvlib.spectrum.average_photon_energy`.
68+
(:issue:`2194`, :pull:`2206`)
69+
- Calculating cell temperature for floating PV. (:pull:`2110`)
70+
- Demonstrating how to use different Perez coefficients in a ModelChain.
71+
(:issue:`2127`, :pull:`2148`)
7772

78-
* Split the contributing page into several pages (:issue:`2210`, :pull:`2219`)
73+
* Fixed examples in :py:func:`~pvlib.shading.shaded_fraction1d`. (:pull:`2215`)
74+
* Updated model description, added equation variable definitions, and created a
75+
new "notes" section in :py:func:`~pvlib.irradiance.haydavies` and
76+
:py:func:`~pvlib.irradiance.klucher`. (:issue:`2183`, :pull:`2191`,
77+
:pull:`2192`)
78+
* Document units with Wm⁻² instead of W/m^2 throughout ``pvlib.irradiance``. (:issue:`2205`, :pull:`2191`)
79+
* Split the contributing page into several pages. (:issue:`2210`, :pull:`2219`)
7980

8081
Requirements
8182
~~~~~~~~~~~~
@@ -89,15 +90,23 @@ Contributors
8990
* Chris Deline (:ghuser:`cdeline`)
9091
* Ioannis Sifnaios (:ghuser:`IoannisSifnaios`)
9192
* Leonardo Micheli (:ghuser:`lmicheli`)
92-
* Echedey Luis (:ghuser:`echedey-ls`)
9393
* Rajiv Daxini (:ghuser:`RDaxini`)
9494
* Mark A. Mikofski (:ghuser:`mikofski`)
9595
* Ben Pierce (:ghuser:`bgpierc`)
9696
* Jose Meza (:ghuser:`JoseMezaMendieta`)
97+
* Kevin Anderson (:ghuser:`kandersolar`)
9798
* Luiz Reis (:ghuser:`luizreiscver`)
9899
* Carlos Cárdenas-Bravo (:ghuser:`cardenca`)
99100
* Marcos R. Escudero (:ghuser:`marc-resc`)
100101
* Bernat Nicolau (:ghuser:`BernatNicolau`)
101102
* Eduardo Sarquis (:ghuser:`EduardoSarquis`)
102103
* Adam R. Jensen (:ghuser:`AdamRJensen`)
103104
* Andrew B Godbehere (:ghuser:`agodbehere`)
105+
* Cliff Hansen (:ghuser:`cwhanse`)
106+
* Anton Driesse (:ghuser:`adriesse`)
107+
* Miguel Angel Sevillano Bendezú (:ghuser:`msevillanob`)
108+
* Erfan (:ghuser:`Metal-Bat`)
109+
* Will Holmgren (:ghuser:`wholmgren`)
110+
* Kurt Rhee (:ghuser:`kurt-rhee`)
111+
* :ghuser:`PhilBrk8`
112+
* Mark Campanelli (:ghuser:`markcampanelli`)
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
.. _whatsnew_01120:
2+
3+
4+
v0.11.2 (Anticipated December, 2024)
5+
------------------------------------
6+
7+
Deprecations
8+
~~~~~~~~~~~~
9+
10+
11+
Enhancements
12+
~~~~~~~~~~~~
13+
14+
15+
Documentation
16+
~~~~~~~~~~~~~
17+
18+
19+
Testing
20+
~~~~~~~
21+
22+
23+
Requirements
24+
~~~~~~~~~~~~
25+
26+
27+
Contributors
28+
~~~~~~~~~~~~
29+
30+

pvlib/data/pvgis_tmy_meta.json

Lines changed: 32 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,32 @@
1-
{
2-
"inputs": {
3-
"location": {
4-
"description": "Selected location",
5-
"variables": {
6-
"latitude": {
7-
"description": "Latitude",
8-
"units": "decimal degree"
9-
},
10-
"longitude": {
11-
"description": "Longitude",
12-
"units": "decimal degree"
13-
},
14-
"elevation": {
15-
"description": "Elevation",
16-
"units": "m"
17-
}
18-
}
19-
},
20-
"meteo_data": {
21-
"description": "Sources of meteorological data",
22-
"variables": {
23-
"radiation_db": {
24-
"description": "Solar radiation database"
25-
},
26-
"meteo_db": {
27-
"description": "Database used for meteorological variables other than solar radiation"
28-
},
29-
"year_min": {
30-
"description": "First year of the calculations"
31-
},
32-
"year_max": {
33-
"description": "Last year of the calculations"
34-
},
35-
"use_horizon": {
36-
"description": "Include horizon shadows"
37-
},
38-
"horizon_db": {
39-
"description": "Source of horizon data"
40-
}
41-
}
42-
}
43-
},
44-
"outputs": {
45-
"months_selected": {
46-
"type": "time series",
47-
"timestamp": "monthly",
48-
"description": "months selected for the TMY"
49-
},
50-
"tmy_hourly": {
51-
"type": "time series",
52-
"timestamp": "hourly",
53-
"variables": {
54-
"T2m": {
55-
"description": "2-m air temperature",
56-
"units": "degree Celsius"
57-
},
58-
"RH": {
59-
"description": "relative humidity",
60-
"units": "%"
61-
},
62-
"G(h)": {
63-
"description": "Global irradiance on the horizontal plane",
64-
"units": "W/m2"
65-
},
66-
"Gb(n)": {
67-
"description": "Beam/direct irradiance on a plane always normal to sun rays",
68-
"units": "W/m2"
69-
},
70-
"Gd(h)": {
71-
"description": "Diffuse irradiance on the horizontal plane",
72-
"units": "W/m2"
73-
},
74-
"IR(h)": {
75-
"description": "Surface infrared (thermal) irradiance on a horizontal plane",
76-
"units": "W/m2"
77-
},
78-
"WS10m": {
79-
"description": "10-m total wind speed",
80-
"units": "m/s"
81-
},
82-
"WD10m": {
83-
"description": "10-m wind direction (0 = N, 90 = E)",
84-
"units": "degree"
85-
},
86-
"SP": {
87-
"description": "Surface (air) pressure",
88-
"units": "Pa"
89-
}
90-
}
91-
}
92-
}
93-
}
1+
{"inputs": {"location": {"description": "Selected location",
2+
"variables": {"latitude": {"description": "Latitude",
3+
"units": "decimal degree"},
4+
"longitude": {"description": "Longitude", "units": "decimal degree"},
5+
"elevation": {"description": "Elevation", "units": "m"}}},
6+
"meteo_data": {"description": "Sources of meteorological data",
7+
"variables": {"radiation_db": {"description": "Solar radiation database"},
8+
"meteo_db": {"description": "Database used for meteorological variables other than solar radiation"},
9+
"year_min": {"description": "First year of the calculations"},
10+
"year_max": {"description": "Last year of the calculations"},
11+
"use_horizon": {"description": "Include horizon shadows"},
12+
"horizon_db": {"description": "Source of horizon data"}}}},
13+
"outputs": {"months_selected": {"type": "time series",
14+
"timestamp": "monthly",
15+
"description": "months selected for the TMY"},
16+
"tmy_hourly": {"type": "time series",
17+
"timestamp": "hourly",
18+
"variables": {"T2m": {"description": "2-m air temperature",
19+
"units": "degree Celsius"},
20+
"RH": {"description": "relative humidity", "units": "%"},
21+
"G(h)": {"description": "Global irradiance on the horizontal plane",
22+
"units": "W/m2"},
23+
"Gb(n)": {"description": "Beam/direct irradiance on a plane always normal to sun rays",
24+
"units": "W/m2"},
25+
"Gd(h)": {"description": "Diffuse irradiance on the horizontal plane",
26+
"units": "W/m2"},
27+
"IR(h)": {"description": "Surface infrared (thermal) irradiance on a horizontal plane",
28+
"units": "W/m2"},
29+
"WS10m": {"description": "10-m total wind speed", "units": "m/s"},
30+
"WD10m": {"description": "10-m wind direction (0 = N, 90 = E)",
31+
"units": "degree"},
32+
"SP": {"description": "Surface (air) pressure", "units": "Pa"}}}}}

0 commit comments

Comments
 (0)