Skip to content

Commit 716c880

Browse files
committed
Merge branch 'main' into cross-axis-whatever-name-consistent-name
2 parents de94021 + 4089dd9 commit 716c880

11 files changed

Lines changed: 104 additions & 52 deletions

File tree

docs/sphinx/source/reference/irradiance/decomposition.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,4 @@ DNI estimation models
1616
irradiance.orgill_hollands
1717
irradiance.boland
1818
irradiance.campbell_norman
19-
irradiance.gti_dirint
2019
irradiance.louche
21-

docs/sphinx/source/reference/irradiance/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Irradiance
99
class-methods
1010
components
1111
transposition
12+
reverse-transposition
1213
decomposition
1314
clearness-index
1415
albedo
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. currentmodule:: pvlib
2+
3+
Reverse transposition models
4+
----------------------------
5+
6+
.. autosummary::
7+
:toctree: ../generated/
8+
9+
irradiance.ghi_from_poa_driesse_2023
10+
irradiance.gti_dirint

docs/sphinx/source/reference/irradiance/transposition.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ Transposition models
1515
irradiance.klucher
1616
irradiance.reindl
1717
irradiance.king
18-
irradiance.ghi_from_poa_driesse_2023

docs/sphinx/source/user_guide/modeling_topics/spectrum.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ Reference [2]_.
5151
| +-----------------------------+ | | | | | | |
5252
| |:term:`precipitable_water`, ||||||| [2]_ |
5353
| +-----------------------------+ | | | | | | |
54-
| | :term:`aod` | | | | | | | |
54+
| | aod | | | | | | | |
5555
+-----------------------------------------------------+-----------------------------+---------+---------+------+------+------+------------+-----------+
5656
| :py:func:`First Solar <spectral_factor_firstsolar>` | :term:`airmass_absolute`, | | | | | | | |
5757
| +-----------------------------+ ||| | | | [3]_ |
5858
| | :term:`precipitable_water` | | | | | | | |
5959
+-----------------------------------------------------+-----------------------------+---------+---------+------+------+------+------------+-----------+
6060
| :py:func:`JRC <spectral_factor_jrc>` | :term:`airmass_relative`, | | | | | | | |
6161
| +-----------------------------+ ||| | | + [4]_ |
62-
| | :term:`clearsky_index` | | | | | | | |
62+
| | clearsky_index | | | | | | | |
6363
+-----------------------------------------------------+-----------------------------+---------+---------+------+------+------+------------+-----------+
6464
| :py:func:`PVSPEC <spectral_factor_pvspec>` | :term:`airmass_absolute`, | | | | | | | |
6565
| +-----------------------------+||||| | [5]_ |
66-
| | :term:`clearsky_index` | | | | | | | |
66+
| | clearsky_index | | | | | | | |
6767
+-----------------------------------------------------+-----------------------------+---------+---------+------+------+------+------------+-----------+
6868
| :py:func:`SAPM <spectral_factor_sapm>` | :term:`airmass_absolute` | | | | | | | [6]_ |
6969
+-----------------------------------------------------+-----------------------------+---------+---------+------+------+------+------------+-----------+

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.13.2.rst
910
.. include:: whatsnew/v0.13.1.rst
1011
.. include:: whatsnew/v0.13.0.rst
1112
.. include:: whatsnew/v0.12.0.rst
Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
.. _whatsnew_0_13_1:
22

33

4-
v0.13.1 (Anticipated September, 2025)
4+
v0.13.1 (September 24, 2025)
55
-------------------------------------
66

7-
Breaking Changes
8-
~~~~~~~~~~~~~~~~
9-
10-
117
Deprecations
128
~~~~~~~~~~~~
139
* Deprecate :py:func:`~pvlib.modelchain.get_orientation`. (:pull:`2495`)
10+
* Deprecate :py:func:`pvlib.modelchain.get_orientation`. (:pull:`2495`)
1411
* Rename parameter name ``apparent_azimuth`` to ``solar_azimuth`` in :py:func:`~pvlib.tracking.singleaxis`.
1512
(:issue:`2479`, :pull:`2480`)
1613
* Rename ``axis_tilt`` and ``cross_axis_tilt`` to ``axis_slope`` and ``cross_axis_slope`` all through the project. Affects:
@@ -32,8 +29,9 @@ Bug fixes
3229

3330
Enhancements
3431
~~~~~~~~~~~~
35-
* Add new parameters for the Huld PV array mode :py:func:`~pvlib.pvarray.huld` (:issue:`2461`, :pull:`2486`)
36-
* Add k coefficient in :py:func:`~pvlib.temperature.ross`
32+
* Add option to use the latest parameters for the Huld PV array model
33+
:py:func:`~pvlib.pvarray.huld`. (:issue:`2461`, :pull:`2486`)
34+
* Add option to specify ``k`` coefficient in :py:func:`~pvlib.temperature.ross`.
3735
(:issue:`2506`, :pull:`2521`)
3836
* Add iotools functions to retrieve irradiance and weather data from Meteonorm:
3937
:py:func:`~pvlib.iotools.get_meteonorm_forecast_basic`, :py:func:`~pvlib.iotools.get_meteonorm_forecast_precision`,
@@ -44,8 +42,8 @@ Enhancements
4442
(:pull:`2500`)
4543
* :py:func:`pvlib.spectrum.spectral_factor_firstsolar` no longer emits warnings
4644
when airmass and precipitable water values fall out of range. (:pull:`2512`)
47-
* Allows reading TMY data from a Path or file-like object in :py:func:`~pvlib.iotools.read_tmy3`.
48-
(:pull:`2544`, :ghuser:`jerluc`)
45+
* Allow reading TMY data from a Path or file-like object in :py:func:`~pvlib.iotools.read_tmy3`.
46+
(:pull:`2544`)
4947

5048
Documentation
5149
~~~~~~~~~~~~~
@@ -55,19 +53,11 @@ Documentation
5553
and other miscellaneous edits. (:issue:`2205`, :issue:`2248`, :pull:`2311`)
5654
* Substantiate definitions of solar/surface azimuth/zenith and aoi on the
5755
:ref:`nomenclature` page. (:issue:`2448`, :pull:`2503`)
58-
* Add a new reference page for the spectrum (:ref:`_spectrum_user_guide`) to the
56+
* Add a new reference page for the spectrum (:ref:`spectrum_user_guide`) to the
5957
Modeling Topics section of the user guide, documenting pvlib-python's spectrum
6058
functionality, which includes a comparison table of spectral mismatch estimation
6159
models. (:issue:`2329`, :pull:`2353`)
62-
63-
64-
Testing
65-
~~~~~~~
66-
67-
68-
Benchmarking
69-
~~~~~~~~~~~~
70-
60+
* Fix FAQ URL in ``README.md``. (:pull:`2488`)
7161

7262
Requirements
7363
~~~~~~~~~~~~
@@ -76,22 +66,26 @@ Requirements
7666
* Advance minimum scipy to 1.7.2. (:pull:`2547`)
7767
* Advance minimum pandas to 1.3.3. (:pull:`2547`)
7868

79-
8069
Maintenance
8170
~~~~~~~~~~~
82-
* Fix FAQ URL in ``README.md``. (:pull:`2488`)
83-
71+
* Switch to using Trusted Publishing for deploying releases to PyPI. (:issue:`2511`, :pull:`2549`)
8472

8573
Contributors
8674
~~~~~~~~~~~~
8775
* Elijah Passmore (:ghuser:`eljpsm`)
8876
* Omar Bahamida (:ghuser:`OmarBahamida`)
8977
* Cliff Hansen (:ghuser:`cwhanse`)
90-
9178
* Ioannis Sifnaios (:ghuser:`IoannisSifnaios`)
9279
* Rajiv Daxini (:ghuser:`RDaxini`)
93-
* Omar Bahamida (:ghuser:`OmarBahamida`)
9480
* Rodrigo Amaro e Silva (:ghuser:`ramaroesilva`)
9581
* Kevin Anderson (:ghuser:`kandersolar`)
9682
* Mikaella Brewer (:ghuser:`brwerx`)
9783
* Will Holmgren (:ghuser:`wholmgren`)
84+
* Jeremy Lucas (:ghuser:`jerluc`)
85+
* Adam R. Jensen (:ghuser:`AdamRJensen`)
86+
* Will Hobbs (:ghuser:`williamhobbs`)
87+
* Echedey Luis (:ghuser:`echedey-ls`)
88+
* Anton Driesse (:ghuser:`adriesse`)
89+
* Mark Mikofski (:ghuser:`mikofski`)
90+
* Mathias Aschwanden (:ghuser:`maschwanden`)
91+
* :ghuser:`leopardracer`
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
.. _whatsnew_0_13_2:
2+
3+
4+
v0.13.2 (Anticipated December, 2025)
5+
------------------------------------
6+
7+
Breaking Changes
8+
~~~~~~~~~~~~~~~~
9+
10+
11+
Deprecations
12+
~~~~~~~~~~~~
13+
14+
15+
Bug fixes
16+
~~~~~~~~~
17+
18+
19+
Enhancements
20+
~~~~~~~~~~~~
21+
22+
23+
Documentation
24+
~~~~~~~~~~~~~
25+
26+
27+
Testing
28+
~~~~~~~
29+
30+
31+
Benchmarking
32+
~~~~~~~~~~~~
33+
34+
35+
Requirements
36+
~~~~~~~~~~~~
37+
38+
39+
Maintenance
40+
~~~~~~~~~~~
41+
42+
43+
Contributors
44+
~~~~~~~~~~~~
45+

pvlib/iotools/meteonorm.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,19 +532,21 @@ def _get_meteonorm(
532532

533533
# Check for None type in case of TMY request
534534
# Check for DateParseError in case of relative times, e.g., '+3hours'
535+
# TODO: remove ValueError when our minimum pandas version is high enough
536+
# to make it unnecessary (2.0?)
535537
if (start is not None) & (start != 'now'):
536538
try:
537539
start = pd.Timestamp(start)
538540
start = start.tz_localize("UTC") if start.tzinfo is None else start
539541
start = start.strftime("%Y-%m-%dT%H:%M:%SZ")
540-
except DateParseError:
542+
except (ValueError, DateParseError):
541543
pass
542544
if (end is not None) & (end != 'now'):
543545
try:
544546
end = pd.Timestamp(end)
545547
end = end.tz_localize("UTC") if end.tzinfo is None else end
546548
end = end.strftime("%Y-%m-%dT%H:%M:%SZ")
547-
except DateParseError:
549+
except (ValueError, DateParseError):
548550
pass
549551

550552
params = {

pvlib/irradiance.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,8 @@ def poa_components(aoi, dni, poa_sky_diffuse, poa_ground_diffuse):
501501
* ``poa_direct`` : Total in-plane beam irradiance. [Wm⁻²]
502502
* ``poa_diffuse`` : Total in-plane diffuse irradiance. [Wm⁻²]
503503
* ``poa_sky_diffuse`` : In-plane diffuse irradiance from sky. [Wm⁻²]
504-
* ``poa_ground_diffuse`` : In-plane diffuse irradiance from ground
505-
. [Wm⁻²]
504+
* ``poa_ground_diffuse`` : In-plane diffuse irradiance from ground.
505+
[Wm⁻²]
506506
507507
Notes
508508
------
@@ -796,7 +796,7 @@ def haydavies(surface_tilt, surface_azimuth, dhi, dni, dni_extra,
796796
* sky_diffuse: Total sky diffuse
797797
* isotropic
798798
* circumsolar
799-
* horizon
799+
* horizon (always zero, not accounted for by the Hay-Davies model)
800800
801801
Notes
802802
------
@@ -997,11 +997,11 @@ def king(surface_tilt, dhi, ghi, solar_zenith):
997997
998998
Parameters
999999
----------
1000-
surface_tilt : numeric
1001-
Panel tilt from the horizontal. See :term:`surface_tilt`. [°]
1000+
surface_tilt : numeric
1001+
Panel tilt from the horizontal. See :term:`surface_tilt`. [°]
10021002
1003-
dhi : numeric
1004-
Diffuse horizontal irradiance. See :term:`dhi`. [Wm⁻²]
1003+
dhi : numeric
1004+
Diffuse horizontal irradiance. See :term:`dhi`. [Wm⁻²]
10051005
10061006
ghi : numeric
10071007
Global horizontal irradiance. See :term:`ghi`. [Wm⁻²]
@@ -1729,7 +1729,7 @@ def clearness_index_zenith_independent(clearness_index, airmass,
17291729
plane. [unitless]
17301730
17311731
airmass : numeric
1732-
Airmass. See :term:`relative_airmass`. [unitless]
1732+
Airmass. See :term:`airmass_relative`. [unitless]
17331733
17341734
max_clearness_index : numeric, default 2.0
17351735
Maximum value of the clearness index. The default, 2.0, allows

0 commit comments

Comments
 (0)