Commit f4a345ad authored by Sergio Costas's avatar Sergio Costas

Optimization

parent 3d0fabb8
......@@ -1464,20 +1464,7 @@ class crust(object):
return False
for old_expoint in self.expoints[ex_point]:
if len(old_expoint) != len(current_vars):
continue
is_equal = True
for element in old_expoint:
if not element in current_vars:
is_equal = False
break
for item in old_expoint[element]:
if old_expoint[element][item] != current_vars[element][item]:
is_equal = False
break
if not is_equal:
break
if is_equal:
if old_expoint == current_vars:
return True
self.expoints[ex_point].append(current_vars.copy())
return False
......
Markdown is supported
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