From 2ce592686c328abbb4f1eeb4acf3066ec6cb44ea Mon Sep 17 00:00:00 2001
From: Thibault Hallouin <thibault.hallouin@inrae.fr>
Date: Wed, 4 May 2022 09:48:32 +0200
Subject: [PATCH] make below/above events complementary

---
 include/evalhyd/utils.hpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/evalhyd/utils.hpp b/include/evalhyd/utils.hpp
index ff4bcd2..aad268c 100644
--- a/include/evalhyd/utils.hpp
+++ b/include/evalhyd/utils.hpp
@@ -11,7 +11,7 @@ namespace evalhyd
 {
     namespace utils
     {
-        /// Determine whether flows are strictly greater than given threshold(s)
+        /// Determine whether flows are greater than given threshold(s)
         ///
         /// Streamflow data is always expected as a 2D array (even if only for
         /// one time series). Threshold(s) given is (are) always expected as a
@@ -19,7 +19,7 @@ namespace evalhyd
         /// returned whose first two dimensions are of the same sizes as the
         /// streamflow data and whose third dimension is of size equal to the
         /// number of thresholds given. The returned array contains ones where
-        /// the threshold is strictly exceeded, and zeros otherwise.
+        /// the threshold is exceeded, and zeros otherwise.
         ///
         /// \param [in] q:
         ///     2D array of streamflow data
@@ -72,7 +72,7 @@ namespace evalhyd
             );
 
             // return a boolean-like array
-            return q2 <= thr;
+            return q2 < thr;
         }
     }
 }
-- 
GitLab