Skip to content

Commit 496dfbb

Browse files
committed
findscope in findc2
1 parent 3c6bbd3 commit 496dfbb

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

pycona/find_constraint/findc2.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,14 @@ def run(self, scope):
9393

9494
kappaD = [c for c in delta if check_value(c) is False]
9595

96-
#scope2 = self.ca.run_find_scope(list(scope), kappaD) # TODO: replace with real findscope arguments when done!
97-
98-
#if len(scope2) < len(scope):
99-
# self.run(scope2)
100-
#else:
101-
delta = join_con_net(delta, kappaD)
96+
scope2 = self.ca.run_find_scope(list(scope))
97+
98+
if len(scope2) < len(scope):
99+
c = self.run(scope2)
100+
self.ca.add_to_cl(c)
101+
sub_cl.append(c)
102+
else:
103+
delta = join_con_net(delta, kappaD)
102104

103105
def generate_findc_query(self, L, delta):
104106
"""

0 commit comments

Comments
 (0)