提交 10df577e authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Merge pull request #234 from pascanur/fix_bug_equal_computation

fix bug in equal_computation when comparing a variable with itself
...@@ -318,7 +318,7 @@ def equal_computations(xs, ys, in_xs=None, in_ys=None, strict=True): ...@@ -318,7 +318,7 @@ def equal_computations(xs, ys, in_xs=None, in_ys=None, strict=True):
if dx.type != dy.type: if dx.type != dy.type:
return False return False
else: else:
if (dx, dy) not in common: if (dx, dy) not in common and dx != dy:
return False return False
while cont and idx < n_nodes: while cont and idx < n_nodes:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论