Browse Source

Change the sorting condition in _get_GKB

pull/3/head
troyyyyy GitHub 3 years ago
parent
commit
3c736686d1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      abl/abducer/kb.py

+ 1
- 1
abl/abducer/kb.py View File

@@ -63,7 +63,7 @@ class KBBase(ABC):
part_X, part_Y = zip(*XY_list)
X.extend(part_X)
Y.extend(part_Y)
if self.max_err != 0:
if type(Y[0]) in (int, float):
sorted_XY = sorted(list(zip(Y, X)))
X = [x for y, x in sorted_XY]
Y = [y for y, x in sorted_XY]


Loading…
Cancel
Save