|
|
@@ -205,7 +205,7 @@ def solve_schema_to_tree(nc, all_nc, roots=[], error_popups=False):
|
|
|
from .utilities import get_node_prototype
|
|
|
np = get_node_prototype(nc.signature, nc.base_tree)
|
|
|
from .schema_solve import SchemaSolver
|
|
|
- solver = SchemaSolver(nc, all_nc, np, error_popups=error_popups)
|
|
|
+ solver = SchemaSolver(nc, all_nc.copy(), np, error_popups=error_popups)
|
|
|
try:
|
|
|
solved_nodes = solver.solve()
|
|
|
except Exception as e:
|
|
|
@@ -217,7 +217,7 @@ def solve_schema_to_tree(nc, all_nc, roots=[], error_popups=False):
|
|
|
# maybe this should be done in schema solver. TODO invesitigate a more efficient way
|
|
|
del_me = []
|
|
|
for k, v in all_nc.items():
|
|
|
- # delete all the schema's internal nodes. The links have already been deleted by the solver.
|
|
|
+ # delete all the schema's prototype and interface nodes. The links have already been deleted by the solver.
|
|
|
if v.signature[0] not in ['MANTIS_AUTOGENERATED'] and is_signature_in_other_signature(nc.signature, k):
|
|
|
del_me.append(k)
|
|
|
for k in del_me:
|