Skip to content

Commit

Permalink
fix helpers.py for nschloe#1050
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesusbill committed Apr 17, 2021
1 parent e508174 commit b5b0787
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/helpers.py
Expand Up @@ -442,7 +442,15 @@ def cell_sorter(cell):
continue
data2 = mesh.cell_sets[name]
for var1, var2 in zip(data, data2):
assert var1 == var2
print()
print("cell_set_keys:")
print(var1, var2)
try:
# original check, needed for gmsh
assert np.allclose(var1, var2, atol=atol, rtol=0.0)
except TypeError:
# eror thrown for med files as var1 and var 2 are strings
assert var1 == var2


def generic_io(filename):
Expand Down

0 comments on commit b5b0787

Please sign in to comment.