Skip to content

Commit 721743d

Browse files
Uwe KrienUwe Krien
authored andcommitted
fix typos, layout changes
1 parent 1bff19f commit 721743d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

pvlib/modelchain.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -612,13 +612,13 @@ def complete_irradiance(self, times, weather):
612612
Determine the missing irradiation columns. Only two of the following
613613
data columns (dni, ghi, dhi) are needed to calculate the missing data.
614614
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
616616
negative. Please contribute and help to improve this function on
617617
https://github.com/pvlib/pvlib-python
618618
619619
Parameters
620620
----------
621-
times : datetime index
621+
times : DatetimeIndex
622622
Date and time index of the irradiation data
623623
weather : pandas.DataFrame
624624
Table with at least two columns containing one of the following data
@@ -629,16 +629,15 @@ def complete_irradiance(self, times, weather):
629629
pandas.DataFrame
630630
Containing the missing column of the data sets passed with the
631631
weather DataFrame.
632-
633632
"""
634633
self.weather = weather
635634
self.times = times
636635
self.solar_position = self.location.get_solarposition(self.times)
637636
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")
642641
warnings.warn(wrn_txt, UserWarning)
643642
if {'ghi', 'dhi'} <= icolumns and 'dni' not in icolumns:
644643
logging.debug('Estimate dni from ghi and dhi')
@@ -696,9 +695,10 @@ def prepare_inputs(self, times=None, irradiance=None, weather=None):
696695
# The following part could be removed together with the irradiance
697696
# parameter at version v0.5 or v0.6.
698697
# **** 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")
702702
if irradiance is not None:
703703
warnings.warn(wrn_txt, FutureWarning)
704704
for column in irradiance.columns:

0 commit comments

Comments
 (0)