From 641a2100cfec8f8062855525fc6b007135829335 Mon Sep 17 00:00:00 2001 From: Victor Garcia Reolid Date: Thu, 21 Mar 2024 12:03:36 +0100 Subject: [PATCH] fix sign Signed-off-by: Victor Garcia Reolid --- timely_beliefs/sensors/func_store/knowledge_horizons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timely_beliefs/sensors/func_store/knowledge_horizons.py b/timely_beliefs/sensors/func_store/knowledge_horizons.py index 0a4eecc0..608d835b 100644 --- a/timely_beliefs/sensors/func_store/knowledge_horizons.py +++ b/timely_beliefs/sensors/func_store/knowledge_horizons.py @@ -55,7 +55,7 @@ def x_years_ago_at_date( These bounds are normally useful for creating more efficient database queries when filtering by belief time. """ - if x >= 0: + if x < 0: raise ValueError("Negative value for `x` not supported.") if get_bounds: