mirror of https://gitlab.com/pamhyr/pamhyr2
geometry: Fix guidelines reduces.
parent
634d0a4194
commit
8fdfd52ff1
|
|
@ -6,6 +6,7 @@ from time import time
|
||||||
from typing import List
|
from typing import List
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
from operator import itemgetter
|
from operator import itemgetter
|
||||||
|
from functools import reduce
|
||||||
|
|
||||||
from tools import flatten
|
from tools import flatten
|
||||||
|
|
||||||
|
|
@ -212,7 +213,7 @@ class Reach:
|
||||||
# Get incomplete guideline
|
# Get incomplete guideline
|
||||||
incomplete = set(
|
incomplete = set(
|
||||||
reduce(
|
reduce(
|
||||||
lambda acc, h: acc[1] + h[1],
|
lambda acc, h: acc + h,
|
||||||
map(
|
map(
|
||||||
lambda l: list(set(l).symmetric_difference(guide_set)),
|
lambda l: list(set(l).symmetric_difference(guide_set)),
|
||||||
points_name
|
points_name
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue