From 774f9857ea794cc0753ebce7fa1c1e409938a96e Mon Sep 17 00:00:00 2001 From: Kevin Anderson Date: Wed, 11 Mar 2020 11:36:27 -0600 Subject: [PATCH 1/2] fix precipitation frequency bug --- rdtools/soiling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdtools/soiling.py b/rdtools/soiling.py index c065e766..a47a5326 100644 --- a/rdtools/soiling.py +++ b/rdtools/soiling.py @@ -45,7 +45,7 @@ def __init__(self, daily_normalized_energy, daily_insolation, precip=None): 'daily frequency') if self.precip is not None: - if self.pm.index.freq != 'D': + if self.precip.index.freq != 'D': raise ValueError('Precipitation series must have ' 'daily frequency') From b8690c9a660325a94a24428f87d3bff5b2bffe8d Mon Sep 17 00:00:00 2001 From: Kevin Anderson Date: Wed, 11 Mar 2020 11:36:38 -0600 Subject: [PATCH 2/2] doc typo --- rdtools/soiling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdtools/soiling.py b/rdtools/soiling.py index a47a5326..de27e844 100644 --- a/rdtools/soiling.py +++ b/rdtools/soiling.py @@ -64,7 +64,7 @@ def _calc_daily_df(self, day_scale=14, clean_threshold='infer', clean_threshold : float or 'infer', default 'infer' If float: the fractional positive shift in rolling median for cleaning detection. - If 'infer:' automatically use outliers in the shift as the + If 'infer': automatically use outliers in the shift as the threshold recenter : bool, default True