diff --git a/abl/abducer/kb.py b/abl/abducer/kb.py index 137647b..3be0875 100644 --- a/abl/abducer/kb.py +++ b/abl/abducer/kb.py @@ -63,9 +63,10 @@ class KBBase(ABC): part_X, part_Y = zip(*XY_list) X.extend(part_X) Y.extend(part_Y) - sorted_XY = sorted(list(zip(Y, X))) - X = [x for y, x in sorted_XY] - Y = [y for y, x in sorted_XY] + if self.max_err != 0: + sorted_XY = sorted(list(zip(Y, X))) + X = [x for y, x in sorted_XY] + Y = [y for y, x in sorted_XY] return X, Y @abstractmethod