From 0603e219cb4c25c9447e172c61a1614695b3e5d3 Mon Sep 17 00:00:00 2001 From: Marcell Vazquez-Chanlatte Date: Mon, 11 Feb 2019 16:50:01 -0800 Subject: [PATCH] forgot comparison op when removing numpy --- mtl/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtl/utils.py b/mtl/utils.py index 6604155..602c813 100644 --- a/mtl/utils.py +++ b/mtl/utils.py @@ -79,7 +79,7 @@ def _interval_discretizable(itvl, dt): l, u = itvl.lower / dt, itvl.upper / dt if not (isfinite(l) and isfinite(u)): return False - return max(abs(l - round(l)), abs(u - round(u))) + return max(abs(l - round(l)), abs(u - round(u))) < 1e-3 def _distribute_next(phi, i=0):