Skip to content

Commit d7d60c6

Browse files
authored
test(test_prt_voronoi1.py): intersect cells, skip snapshot in macos-14 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.
1 parent 37a3805 commit d7d60c6

File tree

2 files changed

+25
-357
lines changed

2 files changed

+25
-357
lines changed

autotest/test_prt_track_events.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,11 +489,13 @@ def all_equal(col, val):
489489
del mf6_pls["xloc"]
490490
del mf6_pls["yloc"]
491491
del mf6_pls["zloc"]
492+
del mf6_pls["node"]
492493
del mp7_pls["sequencenumber"]
493494
del mp7_pls["particleidloc"]
494495
del mp7_pls["xloc"]
495496
del mp7_pls["yloc"]
496497
del mp7_pls["zloc"]
498+
del mp7_pls["node"]
497499

498500
# sort both dataframes
499501
cols = ["x", "y", "z", "time"]

0 commit comments

Comments
 (0)