Skip to content

Commit aa704e9

Browse files
committed
remove effective irradiance warning
1 parent 7462280 commit aa704e9

File tree

3 files changed

+1
-22
lines changed

3 files changed

+1
-22
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ API Changes
3939
* ``pvsystem.ashraeiam``. Use :py:func:`pvlib.iam.ashrae`.
4040
* ``pvsystem.physicaliam``. Use :py:func:`pvlib.iam.physical`.
4141
* ``pvsystem.sapm_aoi_loss``. Use :py:func:`pvlib.iam.sapm`.
42-
* ``pvsystem.sapm_celltemp``. Use :py:func:`pvlib.temperature.sapm`.
42+
* ``pvsystem.sapm_celltemp``. Use :py:func:`pvlib.temperature.sapm_cell`.
4343
* ``pvsystem.pvsyst_celltemp``. Use :py:func:`pvlib.temperature.pvsyst`.
4444

4545
Enhancements

pvlib/pvsystem.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,16 +1595,6 @@ def sapm(effective_irradiance, temp_cell, module):
15951595
# reference_irradiance and expose
15961596
temp_ref = 25
15971597
irrad_ref = 1000
1598-
# TODO: remove this warning in v0.8 after deprecation period for change in
1599-
# effective irradiance units, made in v0.7
1600-
with np.errstate(invalid='ignore'): # turn off warning for NaN
1601-
ee = np.asarray(effective_irradiance)
1602-
ee_gt0 = ee[ee > 0.0]
1603-
if ee_gt0.size > 0 and np.all(ee_gt0 < 2.0):
1604-
import warnings
1605-
msg = 'effective_irradiance inputs appear to be in suns. Units ' \
1606-
'changed in v0.7 from suns to W/m2'
1607-
warnings.warn(msg, RuntimeWarning)
16081598

16091599
q = 1.60218e-19 # Elementary charge in units of coulombs
16101600
kb = 1.38066e-23 # Boltzmann's constant in units of J/K

pvlib/tests/test_pvsystem.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -198,17 +198,6 @@ def test_sapm(sapm_module_params):
198198
pd.Series(sapm_module_params))
199199

200200

201-
def test_pvsystem_sapm_warning(sapm_module_params):
202-
# deprecation warning for change in effective_irradiance units in
203-
# pvsystem.sapm
204-
# TODO: remove after deprecation period (v0.8)
205-
effective_irradiance = np.array([0.1, 0.2, 1.3])
206-
temp_cell = np.array([25, 25, 50])
207-
warn_txt = 'effective_irradiance inputs appear to be in suns'
208-
with pytest.warns(RuntimeWarning, match=warn_txt):
209-
pvsystem.sapm(effective_irradiance, temp_cell, sapm_module_params)
210-
211-
212201
def test_PVSystem_sapm(sapm_module_params, mocker):
213202
mocker.spy(pvsystem, 'sapm')
214203
system = pvsystem.PVSystem(module_parameters=sapm_module_params)

0 commit comments

Comments
 (0)