From c25db9d12e17be50d7f3b220fb0e135dff1eec8d Mon Sep 17 00:00:00 2001
From: Peter Luenenschloss <peter.luenenschloss@ufz.de>
Date: Thu, 3 Sep 2020 10:58:38 +0200
Subject: [PATCH] renamed inclusive selection parameter to include bounds

---
 saqc/lib/tools.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/saqc/lib/tools.py b/saqc/lib/tools.py
index 711c6803a..aa689efb1 100644
--- a/saqc/lib/tools.py
+++ b/saqc/lib/tools.py
@@ -199,7 +199,7 @@ def flagWindow(flagger_old, flagger_new, field, direction="fw", window=0, **kwar
     return flagger_new.setFlags(field, fmask, **kwargs)
 
 
-def seasonalMask(dtindex, season_start, season_end, inclusive_selection):
+def seasonalMask(dtindex, season_start, season_end, include_bounds):
     """
     This function generates date-periodic/seasonal masks from an index passed.
 
@@ -219,7 +219,7 @@ def seasonalMask(dtindex, season_start, season_end, inclusive_selection):
         String denoting starting point of every period. Formally, it has to be a truncated instance of "mm-ddTHH:MM:SS".
         Has to be of same length as `season_end` parameter.
         See examples section below for some examples.
-    inclusive_selection : {"mask","season"}
+    include_bounds : {"mask","season"}
         - "mask": the `season_start` and `season_end` keywords inclusivly frame the mask (INCLUDING INTERVAL BOUNDS)
         - "season": the `season_start` and `season_end` keywords inclusivly frame the season
         (INCLUDING INTERVAL BOUNDS)
@@ -284,13 +284,13 @@ def seasonalMask(dtindex, season_start, season_end, inclusive_selection):
         return _replace
 
     selectors = {"mask": False, "season": True}
-    if inclusive_selection not in selectors:
+    if include_bounds not in selectors:
         raise ValueError(
-            f"invalid value '{inclusive_selection}' was passed to "
+            f"invalid value '{include_bounds}' was passed to "
             f"parameter 'inclusive_selection'. Please select from "
-            f"{list(inclusive_selection.keys())}."
+            f"{list(include_bounds.keys())}."
         )
-    base_bool = selectors[inclusive_selection]
+    base_bool = selectors[include_bounds]
     mask = pd.Series(base_bool, index=dtindex)
 
     start_replacer = _replaceBuilder(season_start)
-- 
GitLab