@@ -358,26 +358,6 @@ def get_iam(self, aoi, iam_model='physical'):
358358 else :
359359 raise ValueError (model + ' is not a valid IAM model' )
360360
361- def ashraeiam (self , aoi ):
362- """
363- Deprecated. Use ``PVSystem.get_iam`` instead.
364- """
365- import warnings
366- warnings .warn ('PVSystem.ashraeiam is deprecated and will be removed in'
367- 'v0.8, use PVSystem.get_iam instead' ,
368- pvlibDeprecationWarning )
369- return PVSystem .get_iam (self , aoi , iam_model = 'ashrae' )
370-
371- def physicaliam (self , aoi ):
372- """
373- Deprecated. Use ``PVSystem.get_iam`` instead.
374- """
375- import warnings
376- warnings .warn ('PVSystem.physicaliam is deprecated and will be removed'
377- ' in v0.8, use PVSystem.get_iam instead' ,
378- pvlibDeprecationWarning )
379- return PVSystem .get_iam (self , aoi , iam_model = 'physical' )
380-
381361 def calcparams_desoto (self , effective_irradiance , temp_cell , ** kwargs ):
382362 """
383363 Use the :py:func:`calcparams_desoto` function, the input
@@ -543,16 +523,6 @@ def sapm_spectral_loss(self, airmass_absolute):
543523 """
544524 return sapm_spectral_loss (airmass_absolute , self .module_parameters )
545525
546- def sapm_aoi_loss (self , aoi ):
547- """
548- Deprecated. Use ``PVSystem.get_iam`` instead.
549- """
550- import warnings
551- warnings .warn ('PVSystem.sapm_aoi_loss is deprecated and will be'
552- ' removed in v0.8, use PVSystem.get_iam instead' ,
553- pvlibDeprecationWarning )
554- return PVSystem .get_iam (self , aoi , iam_model = 'sapm' )
555-
556526 def sapm_effective_irradiance (self , poa_direct , poa_diffuse ,
557527 airmass_absolute , aoi ,
558528 reference_irradiance = 1000 ):
@@ -1695,85 +1665,6 @@ def sapm(effective_irradiance, temp_cell, module):
16951665 return out
16961666
16971667
1698- def _sapm_celltemp_translator (* args , ** kwargs ):
1699- # TODO: remove this function after deprecation period for sapm_celltemp
1700- new_kwargs = {}
1701- # convert position arguments to kwargs
1702- old_arg_list = ['poa_global' , 'wind_speed' , 'temp_air' , 'model' ]
1703- for pos in range (len (args )):
1704- new_kwargs [old_arg_list [pos ]] = args [pos ]
1705- # determine value for new kwarg 'model'
1706- try :
1707- param_set = new_kwargs ['model' ]
1708- new_kwargs .pop ('model' ) # model is not a new kwarg
1709- except KeyError :
1710- # 'model' not in positional arguments, check kwargs
1711- try :
1712- param_set = kwargs ['model' ]
1713- kwargs .pop ('model' )
1714- except KeyError :
1715- # 'model' not in kwargs, use old default value
1716- param_set = 'open_rack_glass_glass'
1717- if type (param_set ) is list :
1718- new_kwargs .update ({'a' : param_set [0 ],
1719- 'b' : param_set [1 ],
1720- 'deltaT' : param_set [2 ]})
1721- elif type (param_set ) is dict :
1722- new_kwargs .update (param_set )
1723- else : # string
1724- params = temperature ._temperature_model_params ('sapm' , param_set )
1725- new_kwargs .update (params )
1726- new_kwargs .update (kwargs ) # kwargs with unchanged names
1727- new_kwargs ['irrad_ref' ] = 1000 # default for new kwarg
1728- # convert old positional arguments to named kwargs
1729- return temperature .sapm_cell (** new_kwargs )
1730-
1731-
1732- sapm_celltemp = deprecated ('0.7' , alternative = 'temperature.sapm_cell' ,
1733- name = 'sapm_celltemp' , removal = '0.8' ,
1734- addendum = 'Note that the arguments and argument '
1735- 'order for temperature.sapm_cell are different '
1736- 'than for sapm_celltemp' )(_sapm_celltemp_translator )
1737-
1738-
1739- def _pvsyst_celltemp_translator (* args , ** kwargs ):
1740- # TODO: remove this function after deprecation period for pvsyst_celltemp
1741- new_kwargs = {}
1742- # convert position arguments to kwargs
1743- old_arg_list = ['poa_global' , 'temp_air' , 'wind_speed' , 'eta_m' ,
1744- 'alpha_absorption' , 'model_params' ]
1745- for pos in range (len (args )):
1746- new_kwargs [old_arg_list [pos ]] = args [pos ]
1747- # determine value for new kwarg 'model'
1748- try :
1749- param_set = new_kwargs ['model_params' ]
1750- new_kwargs .pop ('model_params' ) # model_params is not a new kwarg
1751- except KeyError :
1752- # 'model_params' not in positional arguments, check kwargs
1753- try :
1754- param_set = kwargs ['model_params' ]
1755- kwargs .pop ('model_params' )
1756- except KeyError :
1757- # 'model_params' not in kwargs, use old default value
1758- param_set = 'freestanding'
1759- if type (param_set ) in (list , tuple ):
1760- new_kwargs .update ({'u_c' : param_set [0 ],
1761- 'u_v' : param_set [1 ]})
1762- else : # string
1763- params = temperature ._temperature_model_params ('pvsyst' , param_set )
1764- new_kwargs .update (params )
1765- new_kwargs .update (kwargs ) # kwargs with unchanged names
1766- # convert old positional arguments to named kwargs
1767- return temperature .pvsyst_cell (** new_kwargs )
1768-
1769-
1770- pvsyst_celltemp = deprecated (
1771- '0.7' , alternative = 'temperature.pvsyst_cell' , name = 'pvsyst_celltemp' ,
1772- removal = '0.8' , addendum = 'Note that the argument names for '
1773- 'temperature.pvsyst_cell are different than '
1774- 'for pvsyst_celltemp' )(_pvsyst_celltemp_translator )
1775-
1776-
17771668def sapm_spectral_loss (airmass_absolute , module ):
17781669 """
17791670 Calculates the SAPM spectral loss coefficient, F1.
@@ -2452,18 +2343,6 @@ def pvwatts_losses(soiling=2, shading=3, snow=0, mismatch=2, wiring=2,
24522343 return losses
24532344
24542345
2455- ashraeiam = deprecated ('0.7' , alternative = 'iam.ashrae' , name = 'ashraeiam' ,
2456- removal = '0.8' )(iam .ashrae )
2457-
2458-
2459- physicaliam = deprecated ('0.7' , alternative = 'iam.physical' , name = 'physicaliam' ,
2460- removal = '0.8' )(iam .physical )
2461-
2462-
2463- sapm_aoi_loss = deprecated ('0.7' , alternative = 'iam.sapm' , name = 'sapm_aoi_loss' ,
2464- removal = '0.8' )(iam .sapm )
2465-
2466-
24672346snlinverter = deprecated ('0.8' , alternative = 'inverter.sandia' ,
24682347 name = 'snlinverter' , removal = '0.9' )(inverter .sandia )
24692348
0 commit comments