Commit 8fdfd52f authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

geometry: Fix guidelines reduces.

Showing with 2 additions and 1 deletion
+2 -1
...@@ -6,6 +6,7 @@ from time import time ...@@ -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: ...@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment