We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e075691 commit 01070c8Copy full SHA for 01070c8
theseus/optimizer/variable_ordering.py
@@ -36,7 +36,7 @@ def __iter__(self):
36
return iter(self._var_order)
37
38
def append(self, var: Variable):
39
- if var in self._var_order:
+ if var.name in self._var_name_to_index:
40
raise ValueError(
41
f"Variable {var.name} has already been added to the order."
42
)
0 commit comments