Skip to content

Commit 0415365

Browse files
MichaelHopwoodHopwood
and
Hopwood
authored
removed kwargs in calcparams_desoto, calcparams_cec, and sapm (#1222)
* removed kwargs in calcparams_desoto, calcparams_cec, and sapm * updated whatsnew file * update whatsnew file with PR number * moved note in whatsnew file * Update v0.9.0.rst Co-authored-by: Hopwood <[email protected]>
1 parent 50dcc7f commit 0415365

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ Breaking changes
4545
``surface_azimuth`` are now required parameters for
4646
:py:func:`pvlib.modelchain.basic_chain` (:issue:`1028`, :pull:`1181`)
4747

48+
* Removed the ``**kwargs`` parameters from :py:meth:`~pvlib.pvsystem.PVSystem.sapm` and
49+
:py:meth:`~pvlib.pvsystem.PVSystem.calcparams_desoto` and
50+
:py:meth:`~pvlib.pvsystem.PVSystem.calcparams_cec` (:issue:`1118`, :pull:`1222`)
51+
4852

4953
Deprecations
5054
~~~~~~~~~~~~

pvlib/pvsystem.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def get_iam(self, aoi, iam_model='physical'):
379379
for array, aoi in zip(self.arrays, aoi))
380380

381381
@_unwrap_single_value
382-
def calcparams_desoto(self, effective_irradiance, temp_cell, **kwargs):
382+
def calcparams_desoto(self, effective_irradiance, temp_cell):
383383
"""
384384
Use the :py:func:`calcparams_desoto` function, the input
385385
parameters and ``self.module_parameters`` to calculate the
@@ -393,9 +393,6 @@ def calcparams_desoto(self, effective_irradiance, temp_cell, **kwargs):
393393
temp_cell : float or Series or tuple of float or Series
394394
The average cell temperature of cells within a module in C.
395395
396-
**kwargs
397-
See pvsystem.calcparams_desoto for details
398-
399396
Returns
400397
-------
401398
See pvsystem.calcparams_desoto for details
@@ -420,7 +417,7 @@ def calcparams_desoto(self, effective_irradiance, temp_cell, **kwargs):
420417
)
421418

422419
@_unwrap_single_value
423-
def calcparams_cec(self, effective_irradiance, temp_cell, **kwargs):
420+
def calcparams_cec(self, effective_irradiance, temp_cell):
424421
"""
425422
Use the :py:func:`calcparams_cec` function, the input
426423
parameters and ``self.module_parameters`` to calculate the
@@ -434,9 +431,6 @@ def calcparams_cec(self, effective_irradiance, temp_cell, **kwargs):
434431
temp_cell : float or Series or tuple of float or Series
435432
The average cell temperature of cells within a module in C.
436433
437-
**kwargs
438-
See pvsystem.calcparams_cec for details
439-
440434
Returns
441435
-------
442436
See pvsystem.calcparams_cec for details
@@ -501,7 +495,7 @@ def calcparams_pvsyst(self, effective_irradiance, temp_cell):
501495
)
502496

503497
@_unwrap_single_value
504-
def sapm(self, effective_irradiance, temp_cell, **kwargs):
498+
def sapm(self, effective_irradiance, temp_cell):
505499
"""
506500
Use the :py:func:`sapm` function, the input parameters,
507501
and ``self.module_parameters`` to calculate
@@ -515,9 +509,6 @@ def sapm(self, effective_irradiance, temp_cell, **kwargs):
515509
temp_cell : float or Series or tuple of float or Series
516510
The average cell temperature of cells within a module in C.
517511
518-
kwargs
519-
See pvsystem.sapm for details
520-
521512
Returns
522513
-------
523514
See pvsystem.sapm for details

0 commit comments

Comments
 (0)