Skip to content

Commit bf6554a

Browse files
committed
Change g_poa_effective to effective_irradiance
1 parent 4cfda4a commit bf6554a

3 files changed

Lines changed: 13 additions & 11 deletions

File tree

docs/sphinx/source/user_guide/pvsystem.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ data irradiance and temperature.
7575

7676
.. ipython:: python
7777
78-
pdc = system.pvwatts_dc(g_poa_effective=1000, temp_cell=30)
78+
pdc = system.pvwatts_dc(effective_irradiance=1000, temp_cell=30)
7979
print(pdc)
8080
8181
Methods attached to a PVSystem object wrap the corresponding functions in
@@ -84,8 +84,8 @@ using data stored in the PVSystem attributes. Compare the
8484
:py:meth:`~pvlib.pvsystem.PVSystem.pvwatts_dc` method signature to the
8585
:py:func:`~pvlib.pvsystem.pvwatts_dc` function signature:
8686

87-
* :py:meth:`PVSystem.pvwatts_dc(g_poa_effective, temp_cell) <pvlib.pvsystem.PVSystem.pvwatts_dc>`
88-
* :py:func:`pvwatts_dc(g_poa_effective, temp_cell, pdc0, gamma_pdc, temp_ref=25.) <pvlib.pvsystem.pvwatts_dc>`
87+
* :py:meth:`PVSystem.pvwatts_dc(effective_irradiance, temp_cell) <pvlib.pvsystem.PVSystem.pvwatts_dc>`
88+
* :py:func:`pvwatts_dc(effective_irradiance, temp_cell, pdc0, gamma_pdc, temp_ref=25.) <pvlib.pvsystem.pvwatts_dc>`
8989

9090
How does this work? The :py:meth:`~pvlib.pvsystem.PVSystem.pvwatts_dc`
9191
method looks in `PVSystem.module_parameters` for the `pdc0`, and

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ v0.11.2 (Anticipated December, 2024)
66

77
Deprecations
88
~~~~~~~~~~~~
9+
* Changed the `g_poa_effective` parameter name to
10+
`effective_irradiance` in :py:func:`~pvlib.pvsystem.PVSystem.pvwatts_dc`.
911

1012

1113
Enhancements

pvlib/pvsystem.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -839,23 +839,23 @@ def scale_voltage_current_power(self, data):
839839
)
840840

841841
@_unwrap_single_value
842-
def pvwatts_dc(self, g_poa_effective, temp_cell):
842+
def pvwatts_dc(self, effective_irradiance, temp_cell):
843843
"""
844844
Calculates DC power according to the PVWatts model using
845845
:py:func:`pvlib.pvsystem.pvwatts_dc`, `self.module_parameters['pdc0']`,
846846
and `self.module_parameters['gamma_pdc']`.
847847
848848
See :py:func:`pvlib.pvsystem.pvwatts_dc` for details.
849849
"""
850-
g_poa_effective = self._validate_per_array(g_poa_effective)
850+
effective_irradiance = self._validate_per_array(effective_irradiance)
851851
temp_cell = self._validate_per_array(temp_cell)
852852
return tuple(
853-
pvwatts_dc(g_poa_effective, temp_cell,
853+
pvwatts_dc(effective_irradiance, temp_cell,
854854
array.module_parameters['pdc0'],
855855
array.module_parameters['gamma_pdc'],
856856
**_build_kwargs(['temp_ref'], array.module_parameters))
857-
for array, g_poa_effective, temp_cell
858-
in zip(self.arrays, g_poa_effective, temp_cell)
857+
for array, effective_irradiance, temp_cell
858+
in zip(self.arrays, effective_irradiance, temp_cell)
859859
)
860860

861861
def pvwatts_losses(self):
@@ -2764,7 +2764,7 @@ def scale_voltage_current_power(data, voltage=1, current=1):
27642764
return df_sorted
27652765

27662766

2767-
def pvwatts_dc(g_poa_effective, temp_cell, pdc0, gamma_pdc, temp_ref=25.):
2767+
def pvwatts_dc(effective_irradiance, temp_cell, pdc0, gamma_pdc, temp_ref=25.):
27682768
r"""
27692769
Implements NREL's PVWatts DC power model. The PVWatts DC model [1]_ is:
27702770
@@ -2780,7 +2780,7 @@ def pvwatts_dc(g_poa_effective, temp_cell, pdc0, gamma_pdc, temp_ref=25.):
27802780
27812781
Parameters
27822782
----------
2783-
g_poa_effective: numeric
2783+
effective_irradiance: numeric
27842784
Irradiance transmitted to the PV cells. To be
27852785
fully consistent with PVWatts, the user must have already
27862786
applied angle of incidence losses, but not soiling, spectral,
@@ -2808,7 +2808,7 @@ def pvwatts_dc(g_poa_effective, temp_cell, pdc0, gamma_pdc, temp_ref=25.):
28082808
(2014).
28092809
""" # noqa: E501
28102810

2811-
pdc = (g_poa_effective * 0.001 * pdc0 *
2811+
pdc = (effective_irradiance * 0.001 * pdc0 *
28122812
(1 + gamma_pdc * (temp_cell - temp_ref)))
28132813

28142814
return pdc

0 commit comments

Comments
 (0)