Skip to content

Commit 0deb93f

Browse files
kandersolarRDaxini
andauthored
Finalize v0.12.0 (#2413)
* whatsnew cleanup * add missing contributors * fix minor docs error from #2244 * misc cleanup * rename 0.11.3 to 0.12.0 * add missed edits to contributing guide for new tests location * remove missed `fail_on_pvlib_version` decorator for get_am15g * remove duplicated entries * a few more rst fixes * Update docs/sphinx/source/whatsnew/v0.12.0.rst Co-authored-by: RDaxini <143435106+RDaxini@users.noreply.github.com> --------- Co-authored-by: RDaxini <143435106+RDaxini@users.noreply.github.com>
1 parent 0b6e169 commit 0deb93f

File tree

5 files changed

+48
-50
lines changed

5 files changed

+48
-50
lines changed

Diff for: docs/sphinx/source/contributing/testing.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ typically more efficient to run and debug the tests in your own local
2020
environment.
2121

2222
To run the tests locally, install the ``test`` dependencies specified in the
23-
`setup.py <https://github.com/pvlib/pvlib-python/blob/main/setup.py>`_
23+
`pyproject.toml <https://github.com/pvlib/pvlib-python/blob/main/pyproject.toml>`_
2424
file. See :ref:`installation` instructions for more information.
2525

2626
pvlib's unit tests can easily be run by executing ``pytest`` on the
27-
pvlib directory::
27+
tests directory::
2828

29-
pytest pvlib
29+
pytest tests
3030

3131
or, for a single module::
3232

@@ -39,7 +39,7 @@ or, for a single test::
3939
We suggest using pytest's ``--pdb`` flag to debug test failures rather
4040
than using ``print`` or ``logging`` calls. For example::
4141

42-
pytest pvlib --pdb
42+
pytest tests --pdb
4343

4444
will drop you into the
4545
`pdb debugger <https://docs.python.org/3/library/pdb.html>`_ at the
@@ -50,7 +50,7 @@ to the test suite (with rare exceptions).
5050
To include all network-dependent tests, include the ``--remote-data`` flag to
5151
your ``pytest`` call::
5252

53-
pytest pvlib --remote-data
53+
pytest tests --remote-data
5454

5555
And consider adding ``@pytest.mark.remote_data`` to any network dependent test
5656
you submit for a PR.

Diff for: docs/sphinx/source/reference/pv_modeling/system_models.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Sandia array performance model (SAPM)
1212

1313
pvsystem.sapm
1414
pvsystem.sapm_effective_irradiance
15-
pvsystem.sapm_spectral_loss
15+
spectrum.spectral_factor_sapm
1616
inverter.sandia
1717
temperature.sapm_cell
1818

Diff for: docs/sphinx/source/whatsnew.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ What's New
66

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

9-
.. include:: whatsnew/v0.11.3.rst
9+
.. include:: whatsnew/v0.12.0.rst
1010
.. include:: whatsnew/v0.11.2.rst
1111
.. include:: whatsnew/v0.11.1.rst
1212
.. include:: whatsnew/v0.11.0.rst
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
.. _whatsnew_01130:
1+
.. _whatsnew_01200:
22

33

4-
v0.11.3 (Anticipated March, 2025)
5-
---------------------------------
4+
v0.12.0 (March 19, 2025)
5+
------------------------
66

77
Breaking Changes
88
~~~~~~~~~~~~~~~~
9-
* The pvlib.location.Location.pytz attribute is now read only. The
10-
pytz attribute is now set internally to be consistent with the
11-
pvlib.location.Location.tz attribute. (:issue:`2340`, :pull:`2341`)
12-
* Users must now provide ModelChain.spectral_model, or the 'no_loss' spectral
13-
model is assumed. pvlib.modelchain.ModelChain no longer attempts to infer
14-
the spectral model from PVSystem attributes. (:issue:`2017`, :pull:`2253`)
15-
* Remove deprecated :py:func:`!pvlib.pvsystem.sapm_spectral_loss`.
16-
(:issue:`2243`, :pull:`2244`)
9+
* The :py:attr:`pvlib.location.Location.pytz` attribute is now read only. The
10+
``pytz`` attribute is now set internally to be consistent with the
11+
:py:attr:`pvlib.location.Location.tz` attribute. (:issue:`2340`, :pull:`2341`)
12+
* Users must now provide :py:attr:`ModelChain.spectral_model`, or the ``'no_loss'`` spectral
13+
model is assumed. :py:class:`~pvlib.modelchain.ModelChain` no longer attempts to infer
14+
the spectral model from :py:class:`~pvlib.pvsystem.PVSystem` attributes. (:issue:`2017`, :pull:`2253`)
15+
* Remove deprecated :py:func:`!pvlib.pvsystem.sapm_spectral_loss`; use
16+
:py:func:`~pvlib.spectrum.spectral_factor_sapm` instead. (:issue:`2243`, :pull:`2244`)
1717
* :py:func:`~pvlib.iotools.read_tmy3` now defaults to ``map_variables=True``.
1818
Additionally, the deprecated ``recolumn`` parameter is now removed. (:issue:`2324`, :pull:`2408`)
1919
* Remove :py:func:`!pvlib.atmosphere.first_solar_spectral_correction`, deprecated in v0.10.0.
@@ -28,65 +28,56 @@ Bug fixes
2828
* Add a check to :py:func:`~pvlib.snow.fully_covered_nrel` and
2929
:py:func:`~pvlib.snow.coverage_nrel`. The check uses snow depth on the ground
3030
to improve modeling for systems with shallow tilt angles. The check
31-
adds a new, optional parameter snow_depth. (:issue:`1171`, :pull:`2292`)
32-
* Fix a bug in :py:func:`pvlib.bifacial.get_irradiance_poa` which may have yielded non-zero
31+
adds a new, optional parameter ``snow_depth``. (:issue:`1171`, :pull:`2292`)
32+
* Fix a bug in :py:func:`pvlib.bifacial.infinite_sheds.get_irradiance_poa` which may have yielded non-zero
3333
ground irradiance when the sun was below the horizon. (:issue:`2245`, :pull:`2359`)
3434
* Fix a bug where :py:func:`pvlib.transformer.simple_efficiency` could only be imported
35-
using the `from pvlib.transformer` syntax (:pull:`2388`)
35+
using the ``from pvlib.transformer`` syntax. (:pull:`2388`)
3636
* :py:class:`~pvlib.modelchain.ModelChain` now requires only a minimal set of
3737
parameters to run the SAPM electrical model. (:issue:`2369`, :pull:`2393`)
38-
* Correct keys for First Solar modules in `~pvlib.spectrum.spectral_factor_pvspec` (:issue:`2398`, :pull:`2400`)
39-
* Ensure proper tz and pytz types in pvlib.location.Location. To ensure that
40-
the time zone in pvlib.location.Location remains internally consistent
41-
if/when the time zone is updated, the tz attribute is now the single source
38+
* Correct keys for First Solar modules in :py:func:`~pvlib.spectrum.spectral_factor_pvspec`. (:issue:`2398`, :pull:`2400`)
39+
* Ensure proper tz and pytz types in :py:class:`~pvlib.location.Location`. To ensure that
40+
the time zone in :py:class:`~pvlib.location.Location` remains internally consistent
41+
if/when the time zone is updated, the ``tz`` attribute is now the single source
4242
of time-zone truth, is the single time-zone setter interface, and its getter
4343
returns an IANA string. (:issue:`2340`, :pull:`2341`)
4444
* :py:func:`~pvlib.iotools.get_pvgis_tmy` with ``outputformat='csv'`` now
4545
works with the updated data format returned by PVGIS. (:issue:`2344`, :pull:`2395`)
4646

47-
Deprecations
48-
~~~~~~~~~~~~
49-
50-
5147
Enhancements
5248
~~~~~~~~~~~~
5349
* :py:func:`~pvlib.irradiance.gti_dirint` now raises an informative message
54-
when input data don't include values with AOI<90 (:issue:`1342`, :pull:`2347`)
55-
* Reduced space requirements by excluding tests and test files from wheel.
50+
when input data don't include values with AOI<90. (:issue:`1342`, :pull:`2347`)
51+
* Reduce space requirements by excluding tests and test files from wheel.
5652
Zipped wheel is now 66% of the previous size, and installed size is 50% of
57-
the previous size.
58-
(:issue:`2271`, :pull:`2277`)
53+
the previous size. (:issue:`2271`, :pull:`2277`)
5954

6055
Documentation
6156
~~~~~~~~~~~~~
62-
* Fix Procedural and Object Oriented simulation examples having slightly different results, in :ref:`introtutorial`. (:issue:`2366`, :pull:`2367`)
63-
* Restructure the user guide with subsections (:issue:`2302`, :pull:`2310`)
57+
* Fix Procedural and Object Oriented simulation examples having slightly different
58+
results in :ref:`introtutorial`. (:issue:`2366`, :pull:`2367`)
59+
* Restructure the user guide with subsections. (:issue:`2302`, :pull:`2310`)
6460
* Add references for :py:func:`pvlib.snow.loss_townsend`. (:issue:`2383`, :pull:`2384`)
65-
* Add :term:`ghi_clear` to the :ref:`nomenclature` page (:issue:`2272`, :pull:`2397`)
66-
* Add output variable naming clarifaction to :py:func:`pvlib.pvsystem.calcparams_desoto` and :py:func:`pvlib.pvsystem.calcparams_pvsyst` (:issue:`716`, :pull:`2405`)
61+
* Add :term:`ghi_clear` to the :ref:`nomenclature` page. (:issue:`2272`, :pull:`2397`)
62+
* Add output variable naming clarifaction to :py:func:`pvlib.pvsystem.calcparams_desoto`
63+
and :py:func:`pvlib.pvsystem.calcparams_pvsyst`. (:issue:`716`, :pull:`2405`)
6764

6865
Testing
6966
~~~~~~~
70-
* Moved tests folder to `/tests` and data exclusively used for testing to `/tests/data`.
67+
* Move tests folder to ``/tests`` and data exclusively used for testing to ``/tests/data``.
7168
(:issue:`2271`, :pull:`2277`)
72-
* Added Python 3.13 to test suite. (:pull:`2258`)
73-
* Add tests for all input types for the pvlib.location.Location.tz attribute.
69+
* Add Python 3.13 to test suite. (:issue:`2201`, :pull:`2258`)
70+
* Add tests for all input types for the :py:attr:`pvlib.location.Location.tz` attribute.
7471
(:issue:`2340`, :pull:`2341`)
75-
* Add tests for time-conversion functions in pvlib.tools. (:issue:`2340`, :pull:`2341`)
76-
77-
78-
Requirements
79-
~~~~~~~~~~~~
80-
72+
* Add tests for time-conversion functions in :py:mod:`pvlib.tools`. (:issue:`2340`, :pull:`2341`)
8173

8274
Maintenance
8375
~~~~~~~~~~~
84-
* Fix ReadTheDocs builds by upgrading `readthedocs.yml` configuration
76+
* Fix ReadTheDocs builds by upgrading ``readthedocs.yml`` configuration
8577
(:issue:`2357`, :pull:`2358`)
8678
* asv 0.4.2 upgraded to asv 0.6.4 to fix CI failure due to pinned older conda.
8779
(:pull:`2352`)
8880

89-
9081
Contributors
9182
~~~~~~~~~~~~
9283
* Rajiv Daxini (:ghuser:`RDaxini`)
@@ -99,3 +90,11 @@ Contributors
9990
* Echedey Luis (:ghuser:`echedey-ls`)
10091
* Mark Campanelli (:ghuser:`markcampanelli`)
10192
* Max Jackson (:ghuser:`MaxJackson`)
93+
* Anton Driesse (:ghuser:`adriesse`)
94+
* Adam R. Jensen (:ghuser:`AdamRJensen`)
95+
* Ioannis Sifnaios (:ghuser:`IoannisSifnaios`)
96+
* Will Holmgren (:ghuser:`wholmgren`)
97+
* Sophie Pelland (:ghuser:`solphie-pelland`)
98+
* Will Hobbs (:ghuser:`williamhobbs`)
99+
* Karel De Brabandere (:ghuser:`kdebrab`)
100+
* Kenneth J. Sauer (:ghuser:`kjsauer`)

Diff for: tests/spectrum/test_irradiance.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
import numpy as np
55
from pvlib import spectrum
66

7-
from tests.conftest import assert_series_equal, fail_on_pvlib_version
7+
from tests.conftest import assert_series_equal
88

99

10-
@fail_on_pvlib_version('0.12')
1110
def test_get_reference_spectra_am15g():
1211
# test that the reference spectrum is read and interpolated correctly
1312
e = spectrum.get_reference_spectra()['global']

0 commit comments

Comments
 (0)