Commit 752cec8f authored by William Roberts's avatar William Roberts
Browse files

Fix compare.py

parent 5c743aac
......@@ -71,7 +71,7 @@ def compare_nc(nc1, nc2, percent_error=0.0, ignore=[]):
attr1 = getattr(nc1, attr)
attr2 = getattr(nc2, attr)
if attr1 != attr2:
print(f"{tcolor.GREEN} Attribute {name} differs\n< {attr1}\n> {attr2}{tcolor.ENDC}")
print(f"{tcolor.GREEN} Attribute {attr} differs\n< {attr1}\n> {attr2}{tcolor.ENDC}")
ret = -1
nc1_attrs.remove(attr)
nc2_attrs.remove(attr)
......
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