@@ -612,13 +612,13 @@ def complete_irradiance(self, times, weather):
612
612
Determine the missing irradiation columns. Only two of the following
613
613
data columns (dni, ghi, dhi) are needed to calculate the missing data.
614
614
615
- This function is not save at the moment. Results can be too high or
615
+ This function is not safe at the moment. Results can be too high or
616
616
negative. Please contribute and help to improve this function on
617
617
https://github.com/pvlib/pvlib-python
618
618
619
619
Parameters
620
620
----------
621
- times : datetime index
621
+ times : DatetimeIndex
622
622
Date and time index of the irradiation data
623
623
weather : pandas.DataFrame
624
624
Table with at least two columns containing one of the following data
@@ -629,16 +629,15 @@ def complete_irradiance(self, times, weather):
629
629
pandas.DataFrame
630
630
Containing the missing column of the data sets passed with the
631
631
weather DataFrame.
632
-
633
632
"""
634
633
self .weather = weather
635
634
self .times = times
636
635
self .solar_position = self .location .get_solarposition (self .times )
637
636
icolumns = set (self .weather .columns )
638
- wrn_txt = "This function is not save at the moment.\n "
639
- wrn_txt += "Results can be too high or negative.\n "
640
- wrn_txt += "Help to improve this function on github."
641
- wrn_txt += "https://github.com/pvlib/pvlib-python"
637
+ wrn_txt = ( "This function is not safe at the moment.\n " +
638
+ "Results can be too high or negative.\n " +
639
+ "Help to improve this function on github: \n " +
640
+ "https://github.com/pvlib/pvlib-python \n " )
642
641
warnings .warn (wrn_txt , UserWarning )
643
642
if {'ghi' , 'dhi' } <= icolumns and 'dni' not in icolumns :
644
643
logging .debug ('Estimate dni from ghi and dhi' )
@@ -696,9 +695,10 @@ def prepare_inputs(self, times=None, irradiance=None, weather=None):
696
695
# The following part could be removed together with the irradiance
697
696
# parameter at version v0.5 or v0.6.
698
697
# **** Begin ****
699
- wrn_txt = "The irradiance parameter will be removed soon.\n "
700
- wrn_txt += "Please use the weather parameter to pass a DataFrame with "
701
- wrn_txt += "irradiance (ghi, dni, dhi), wind speed and temp_air"
698
+ wrn_txt = ("The irradiance parameter will be removed soon.\n " +
699
+ "Please use the weather parameter to pass a DataFrame " +
700
+ "with irradiance (ghi, dni, dhi), wind speed and " +
701
+ "temp_air.\n " )
702
702
if irradiance is not None :
703
703
warnings .warn (wrn_txt , FutureWarning )
704
704
for column in irradiance .columns :
0 commit comments