From e3516f267b1085448f8e66ae8714548998b4f5b5 Mon Sep 17 00:00:00 2001 From: Houyhnhnm Date: Tue, 5 Jun 2018 18:16:26 +0200 Subject: optimized barline calculation --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils.py') diff --git a/utils.py b/utils.py index afd2537..fa37568 100644 --- a/utils.py +++ b/utils.py @@ -25,6 +25,6 @@ def flatten(pool): return res def isOversliced(bars): - targets = [bar < 2.5 for bar in bars] + targets = [bar > 0 and bar < 2.5 for bar in bars] return (True in targets) -- cgit v1.2.3