From f619836b2a14832b10d33eebfec49ebae00107ed Mon Sep 17 00:00:00 2001 From: rotmanmi Date: Thu, 4 Jan 2018 07:12:31 +0200 Subject: [PATCH] changed is to == to support numbers larger than 256 --- segeval/window/windowdiff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/segeval/window/windowdiff.py b/segeval/window/windowdiff.py index 35f8195..21777f3 100644 --- a/segeval/window/windowdiff.py +++ b/segeval/window/windowdiff.py @@ -107,7 +107,7 @@ def __window_diff__(hypothesis, reference, window_size, one_minus, ref_boundaries = 0 hyp_boundaries = 0 # Check that the number of loops is correct - assert len(window) is window_size + 1 + assert len(window) == window_size + 1 # For pair in window for j in range(0, len(window) - 1): ref_part, hyp_part = zip(*window[j:j + 2])