Skip to content

Commit

Permalink
test(test_prt_voronoi1.py): intersect cells, skip snapshot in macos-1…
Browse files Browse the repository at this point in the history
…4 ci (#1893)

The Voronoi grid generated in test_prt_voronoi1.py is slightly different on macos-14 for some reason. I haven't been able to reproduce locally. To workaround, skip the snapshot on macos-14 in CI. Also re-enable intersections instead of hardcoding in the same test (intersections seem faster than they used to be) and drop the "node" column before the comparison of prt and mp7 results in test_prt_track_events.py, as this might vary depending which side of a boundary the particle is computed to be on.
  • Loading branch information
wpbonelli authored Jun 21, 2024
1 parent 37a3805 commit d7d60c6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 357 deletions.
2 changes: 2 additions & 0 deletions autotest/test_prt_track_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,11 +489,13 @@ def all_equal(col, val):
del mf6_pls["xloc"]
del mf6_pls["yloc"]
del mf6_pls["zloc"]
del mf6_pls["node"]
del mp7_pls["sequencenumber"]
del mp7_pls["particleidloc"]
del mp7_pls["xloc"]
del mp7_pls["yloc"]
del mp7_pls["zloc"]
del mp7_pls["node"]

# sort both dataframes
cols = ["x", "y", "z", "time"]
Expand Down
Loading

0 comments on commit d7d60c6

Please sign in to comment.