Skip to content

Commit

Permalink
fix test_med for nschloe#1050
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesusbill committed Apr 17, 2021
1 parent 5df8193 commit 79466d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_med.py
Expand Up @@ -57,8 +57,8 @@ def test_reference_file_with_mixed_cells():

# Point tags
assert mesh.point_data["point_tags"].sum() == 52
ref_point_tags_info = {2: ["Side"], 3: ["Side", "Top"], 4: ["Top"]}
assert mesh.point_tags == ref_point_tags_info
ref_point_sets_info = {2: ["Side"], 3: ["Side", "Top"], 4: ["Top"]}
assert mesh.point_sets == ref_point_sets_info

# Cell tags
ref_sum_cell_tags = {
Expand All @@ -71,7 +71,7 @@ def test_reference_file_with_mixed_cells():
assert {
c.type: sum(d) for c, d in zip(mesh.cells, mesh.cell_data["cell_tags"])
} == ref_sum_cell_tags
ref_cell_tags_info = {
ref_cell_sets_info = {
-6: ["Top circle"],
-7: ["Top", "Top and down"],
-8: ["Top and down"],
Expand All @@ -80,7 +80,7 @@ def test_reference_file_with_mixed_cells():
-11: ["B", "C"],
-12: ["C"],
}
assert mesh.cell_tags == ref_cell_tags_info
assert mesh.cell_sets == ref_cell_sets_info

helpers.write_read(meshio.med.write, meshio.med.read, mesh, 1.0e-15)

Expand Down

0 comments on commit 79466d9

Please sign in to comment.