Skip to content

Commit 021a9dc

Browse files
committed
Merge remote-tracking branch 'upstream/main' into release
2 parents dce1c28 + c18c796 commit 021a9dc

18 files changed

Lines changed: 26 additions & 198 deletions

File tree

docs/sphinx/source/reference/airmass_atmospheric.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Airmass and atmospheric models
1414
atmosphere.tdew_from_rh
1515
atmosphere.rh_from_tdew
1616
atmosphere.gueymard94_pw
17-
atmosphere.first_solar_spectral_correction
1817
atmosphere.bird_hulstrom80_aod_bb
1918
atmosphere.kasten96_lt
2019
atmosphere.angstrom_aod_at_lambda

docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Spectrum
88

99
spectrum.spectrl2
1010
spectrum.get_example_spectral_response
11-
spectrum.get_am15g
1211
spectrum.get_reference_spectra
1312
spectrum.calc_spectral_mismatch_field
1413
spectrum.spectral_factor_caballero

docs/sphinx/source/reference/pv_modeling/system_models.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Sandia array performance model (SAPM)
1313
pvsystem.sapm
1414
pvsystem.sapm_effective_irradiance
1515
pvsystem.sapm_spectral_loss
16-
spectrum.spectral_factor_sapm
1716
inverter.sandia
1817
temperature.sapm_cell
1918

docs/sphinx/source/whatsnew/v0.10.0.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ Deprecations
5353
deprecated. Use :py:func:`pvlib.pvsystem.v_from_i` and
5454
:py:func:`pvlib.pvsystem.i_from_v` instead. (:issue:`1626`, :pull:`1743`)
5555
* Functions for calculating spectral modifiers have been moved to :py:mod:`pvlib.spectrum`:
56-
:py:func:`pvlib.atmosphere.first_solar_spectral_correction` is deprecated and
56+
:py:func:`!pvlib.atmosphere.first_solar_spectral_correction` is deprecated and
5757
replaced by :py:func:`~pvlib.spectrum.spectral_factor_firstsolar`, and
58-
:py:func:`pvlib.pvsystem.sapm_spectral_loss` is deprecated and replaced by
58+
:py:func:`!pvlib.pvsystem.sapm_spectral_loss` is deprecated and replaced by
5959
:py:func:`~pvlib.spectrum.spectral_factor_sapm`. (:pull:`1628`)
6060
* Removed the ``get_ecmwf_macc`` and ``read_ecmwf_macc`` iotools functions as the
6161
MACC dataset has been `removed by ECMWF <https://confluence.ecmwf.int/display/DAC/Decommissioning+of+ECMWF+Public+Datasets+Service>`_

docs/sphinx/source/whatsnew/v0.11.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Deprecations
2828
~~~~~~~~~~~~
2929
* The ``pvlib.irradiance.SURFACE_ALBEDOS`` dictionary has been moved to
3030
:py:const:`pvlib.albedo.SURFACE_ALBEDOS`. (:pull:`2095`)
31-
* Function :py:func:`pvlib.spectrum.get_am15g` has been deprecated in favor
31+
* Function :py:func:`!pvlib.spectrum.get_am15g` has been deprecated in favor
3232
of the new function :py:func:`pvlib.spectrum.get_reference_spectra`. Use
3333
``pvlib.spectrum.get_reference_spectra(standard="ASTM G173-03")["global"]``
3434
instead. (:pull:`2039`)

docs/sphinx/source/whatsnew/v0.11.3.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ Breaking Changes
1212
* Users must now provide :py:attr:`ModelChain.spectral_model`, or the 'no_loss' spectral
1313
model is assumed. :py:class:`~pvlib.modelchain.ModelChain` no longer attempts to infer
1414
the spectral model from :py:class:`~pvlib.pvsystem.PVSystem` attributes. (:issue:`2017`, :pull:`2253`)
15+
* The pvlib.location.Location.pytz attribute is now read only. The
16+
pytz attribute is now set internally to be consistent with the
17+
pvlib.location.Location.tz attribute. (:issue:`2340`, :pull:`2341`)
18+
* Users must now provide ModelChain.spectral_model, or the 'no_loss' spectral
19+
model is assumed. pvlib.modelchain.ModelChain no longer attempts to infer
20+
the spectral model from PVSystem attributes. (:issue:`2017`, :pull:`2253`)
21+
* Remove deprecated :py:func:`!pvlib.pvsystem.sapm_spectral_loss`.
22+
(:issue:`2243`, :pull:`2244`)
23+
* :py:func:`~pvlib.iotools.read_tmy3` now defaults to ``map_variables=True``.
24+
Additionally, the deprecated ``recolumn`` parameter is now removed. (:issue:`2324`, :pull:`2408`)
25+
* Remove :py:func:`!pvlib.atmosphere.first_solar_spectral_correction`, deprecated in v0.10.0.
26+
Use :py:func:`~pvlib.spectrum.spectral_factor_firstsolar` instead. (:issue:`2130`, :pull:`2131`)
27+
* Remove deprecated :py:func:`!pvlib.spectrum.get_am15g` function; use
28+
:py:func:`~pvlib.spectrum.get_reference_spectra` instead. (:pull:`2409`)
1529

1630
Bug fixes
1731
~~~~~~~~~

docs/sphinx/source/whatsnew/v0.6.1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Enhancements
5656
* Use HRRR modeled surface temperature values instead of inferring from
5757
isobaric values and modeled wind speed instead of inferring from gust.
5858
(:issue:`604`)
59-
* Change :py:func:`pvlib.pvsystem.sapm_spectral_loss` to avoid numpy warning.
59+
* Change :py:func:`!pvlib.pvsystem.sapm_spectral_loss` to avoid numpy warning.
6060
* Add warning message when :py:func:`pvlib.spa` is reloaded. (:issue:`401`)
6161
* Add option for :py:func:`pvlib.irradiance.disc` to use relative airmass
6262
by supplying `pressure=None`. (:issue:`449`)

docs/sphinx/source/whatsnew/v0.7.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ API Changes with Deprecations
104104
* Changes related to spectral modifier (:issue:`782`):
105105
* Changes to functions
106106
- Added the argument `pw_min` and `pw_max`, default values 0.1 and 8 resp.,
107-
to `atmosphere.first_solar_spectral_correction`. This function now returns NaN
107+
to :py:func:`!pvlib.atmosphere.first_solar_spectral_correction`. This function now returns NaN
108108
if pw value higher than `pw_max`.
109109
* The `times` keyword argument has been deprecated in the
110110
:py:meth:`pvlib.modelchain.ModelChain.run_model`,

docs/sphinx/source/whatsnew/v0.9.3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Enhancements
1414
(:issue:`1516`, :pull:`1518`)
1515
* New module to calculate spectral mismatch from field spectral measurements
1616
:py:func:`~pvlib.spectrum.get_example_spectral_response`
17-
:py:func:`~pvlib.spectrum.get_am15g`
17+
:py:func:`!pvlib.spectrum.get_am15g`
1818
:py:func:`~pvlib.spectrum.calc_spectral_mismatch_field`
1919
(:issue:`1523`, :pull:`1524`)
2020
* Added Townsend-Powers monthly snow loss model:

pvlib/atmosphere.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
import numpy as np
88
import pandas as pd
9-
import pvlib
10-
11-
from pvlib._deprecation import deprecated
129

1310
APPARENT_ZENITH_MODELS = ('simple', 'kasten1966', 'kastenyoung1989',
1411
'gueymard1993', 'pickering2002')
@@ -416,12 +413,6 @@ def tdew_from_rh(temp_air, relative_humidity, coeff=(6.112, 17.62, 243.12)):
416413
return dewpoint
417414

418415

419-
first_solar_spectral_correction = deprecated(
420-
since='0.10.0',
421-
alternative='pvlib.spectrum.spectral_factor_firstsolar'
422-
)(pvlib.spectrum.spectral_factor_firstsolar)
423-
424-
425416
def bird_hulstrom80_aod_bb(aod380, aod500):
426417
"""
427418
Approximate broadband aerosol optical depth.

0 commit comments

Comments
 (0)