From ef671f214f16d8f5f50504d3afe11b59fedaae76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= <6774676+eumiro@users.noreply.github.com> Date: Thu, 21 Sep 2023 20:23:08 +0200 Subject: [PATCH 1/2] Remove repeated words --- .../irradiance-decomposition/plot_diffuse_fraction.py | 2 +- pvlib/ivtools/sdm.py | 2 +- pvlib/location.py | 2 +- pvlib/modelchain.py | 2 +- pvlib/pvsystem.py | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/examples/irradiance-decomposition/plot_diffuse_fraction.py b/docs/examples/irradiance-decomposition/plot_diffuse_fraction.py index 30d1385f87..1c33824356 100644 --- a/docs/examples/irradiance-decomposition/plot_diffuse_fraction.py +++ b/docs/examples/irradiance-decomposition/plot_diffuse_fraction.py @@ -203,7 +203,7 @@ # `NSRDB`_ user manuals. # # The Erbs and Boland models are correlations only based on the clearness index -# kt, which is the ratio of GHI to the the horizontal component of the +# kt, which is the ratio of GHI to the horizontal component of the # extra-terrestrial irradiance. At low sun elevation (zenith near 90 degrees), # especially near sunset, kt can explode because the denominator # (extra-terrestrial irradiance) approaches zero. In pvlib this behavior is diff --git a/pvlib/ivtools/sdm.py b/pvlib/ivtools/sdm.py index a695e740e7..cad5763a0e 100644 --- a/pvlib/ivtools/sdm.py +++ b/pvlib/ivtools/sdm.py @@ -48,7 +48,7 @@ def fit_cec_sam(celltype, v_mp, i_mp, v_oc, i_sc, alpha_sc, beta_voc, beta_voc : float Temperature coefficient of open circuit voltage [V/C] gamma_pmp : float - Temperature coefficient of power at maximum point point [%/C] + Temperature coefficient of power at maximum point [%/C] cells_in_series : int Number of cells in series temp_ref : float, default 25 diff --git a/pvlib/location.py b/pvlib/location.py index 50f98d375d..46d8477237 100644 --- a/pvlib/location.py +++ b/pvlib/location.py @@ -282,7 +282,7 @@ def get_airmass(self, times=None, solar_position=None, times : None or DatetimeIndex, default None Only used if solar_position is not provided. solar_position : None or DataFrame, default None - DataFrame with with columns 'apparent_zenith', 'zenith'. + DataFrame with columns 'apparent_zenith', 'zenith'. model : str, default 'kastenyoung1989' Relative airmass model. See :py:func:`pvlib.atmosphere.get_relative_airmass` diff --git a/pvlib/modelchain.py b/pvlib/modelchain.py index c1ea50e1b2..c88f8a7641 100644 --- a/pvlib/modelchain.py +++ b/pvlib/modelchain.py @@ -1518,7 +1518,7 @@ def _build_irrad(data): return self def _assign_times(self): - """Assign self.results.times according the the index of + """Assign self.results.times according the index of self.results.weather. If there are multiple DataFrames in self.results.weather then diff --git a/pvlib/pvsystem.py b/pvlib/pvsystem.py index 3d49317cee..f0c1cd2cda 100644 --- a/pvlib/pvsystem.py +++ b/pvlib/pvsystem.py @@ -893,7 +893,7 @@ def num_arrays(self): class Array: """ - An Array is a set of of modules at the same orientation. + An Array is a set of modules at the same orientation. Specifically, an array is defined by its mount, the module parameters, the number of parallel strings of modules @@ -996,7 +996,7 @@ def __repr__(self): ) def _infer_temperature_model_params(self): - # try to infer temperature model parameters from from racking_model + # try to infer temperature model parameters from racking_model # and module_type param_set = f'{self.mount.racking_model}_{self.module_type}' if param_set in temperature.TEMPERATURE_MODEL_PARAMETERS['sapm']: From 39c68173ccc329a044037a8f7bc62af7800d0d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= <6774676+eumiro@users.noreply.github.com> Date: Fri, 22 Sep 2023 21:48:52 +0200 Subject: [PATCH 2/2] Update pvlib/ivtools/sdm.py Co-authored-by: Kevin Anderson --- pvlib/ivtools/sdm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvlib/ivtools/sdm.py b/pvlib/ivtools/sdm.py index cad5763a0e..1f36471a30 100644 --- a/pvlib/ivtools/sdm.py +++ b/pvlib/ivtools/sdm.py @@ -48,7 +48,7 @@ def fit_cec_sam(celltype, v_mp, i_mp, v_oc, i_sc, alpha_sc, beta_voc, beta_voc : float Temperature coefficient of open circuit voltage [V/C] gamma_pmp : float - Temperature coefficient of power at maximum point [%/C] + Temperature coefficient of power at maximum power point [%/C] cells_in_series : int Number of cells in series temp_ref : float, default 25