@@ -713,7 +713,7 @@ def complete_irradiance(self, times=None, weather=None):
713713
714714 return self
715715
716- def prepare_inputs (self , times = None , irradiance = None , weather = None ):
716+ def prepare_inputs (self , times = None , weather = None ):
717717 """
718718 Prepare the solar position, irradiance, and weather inputs to
719719 the model.
@@ -723,8 +723,6 @@ def prepare_inputs(self, times=None, irradiance=None, weather=None):
723723 times : None or DatetimeIndex, default None
724724 Times at which to evaluate the model. Can be None if
725725 attribute `times` is already set.
726- irradiance : None or DataFrame
727- This parameter is deprecated. Please use `weather` instead.
728726 weather : None or DataFrame, default None
729727 If None, the weather attribute is used. If the weather
730728 attribute is also None assumes air temperature is 20 C, wind
@@ -747,19 +745,6 @@ def prepare_inputs(self, times=None, irradiance=None, weather=None):
747745 if self .weather is None :
748746 self .weather = pd .DataFrame ()
749747
750- # The following part could be removed together with the irradiance
751- # parameter at version v0.5 or v0.6.
752- # **** Begin ****
753- wrn_txt = ("The irradiance parameter will be removed soon.\n " +
754- "Please use the weather parameter to pass a DataFrame " +
755- "with irradiance (ghi, dni, dhi), wind speed and " +
756- "temp_air.\n " )
757- if irradiance is not None :
758- warnings .warn (wrn_txt , FutureWarning )
759- for column in irradiance .columns :
760- self .weather [column ] = irradiance [column ]
761- # **** End ****
762-
763748 if times is not None :
764749 self .times = times
765750
@@ -824,7 +809,7 @@ def prepare_inputs(self, times=None, irradiance=None, weather=None):
824809 self .weather ['temp_air' ] = 20
825810 return self
826811
827- def run_model (self , times = None , irradiance = None , weather = None ):
812+ def run_model (self , times = None , weather = None ):
828813 """
829814 Run the model.
830815
@@ -833,8 +818,6 @@ def run_model(self, times=None, irradiance=None, weather=None):
833818 times : None or DatetimeIndex, default None
834819 Times at which to evaluate the model. Can be None if
835820 attribute `times` is already set.
836- irradiance : None or DataFrame
837- This parameter is deprecated. Please use `weather` instead.
838821 weather : None or DataFrame, default None
839822 If None, assumes air temperature is 20 C, wind speed is 0
840823 m/s and irradiation calculated from clear sky data. Column
@@ -852,7 +835,7 @@ def run_model(self, times=None, irradiance=None, weather=None):
852835 aoi_modifier, spectral_modifier, dc, ac, losses.
853836 """
854837
855- self .prepare_inputs (times , irradiance , weather )
838+ self .prepare_inputs (times , weather )
856839 self .aoi_model ()
857840 self .spectral_model ()
858841 self .effective_irradiance_model ()
0 commit comments