diff --git a/cf/query.py b/cf/query.py index 87ff0c1c5b..268ca7b6d0 100644 --- a/cf/query.py +++ b/cf/query.py @@ -166,10 +166,11 @@ class Query: evaluated. ====================== ============================================== - In general, each method must have the query value as it's only - parameter. The only exception is for `__query_isclose__`, which + In general, each method must have the query value as its only + parameter. The only exceptions are for `__query_isclose__`, which also requires the absolute and relative numerical tolerances to be - provided. + provided, and for `__query_wi__`, which also requires upper and + lower interval openness Booleans to be provided. When the condition is on an attribute, or nested attributes, of the operand, the query interface method is looked for on the @@ -972,7 +973,7 @@ def _evaluate(self, x, parent_attr): if operator == "wi": _wi = getattr(x, "__query_wi__", None) if _wi is not None: - return _wi(value) + return _wi(value, self.open_lower, self.open_upper) if self.open_lower: lower_bound = x > value[0]