Skip to content

Commit

Permalink
Fixed part test
Browse files Browse the repository at this point in the history
  • Loading branch information
JanVogelsang committed Mar 14, 2024
1 parent 85c0b6d commit 80174e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/acceptance_tests/test_part.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
def test_part():
sim = Simulation("./part_data")
particles = sim.particles["WATER PARTICLES"]
position = particles.positions[-1]
position = particles.positions[-1][-1]
color_data = particles.data["PARTICLE DIAMETER"]

assert abs(position[0] - 0.04036335) < 1e-6 and abs(position[1] - 0.05389348) < 1e-6 and abs(position[2] - 13.596354) < 1e-6
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance_tests/test_slcf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ def test_slcf():
sim = Simulation("./steckler_data")
data, coordinates = sim.slices[0].to_global(masked=True, return_coordinates=True)
assert abs(data[-1, -1, -1] - 33.311744689941406) < 1e-6
assert abs(coordinates['x'][0] - 0.) < 1e-6 and abs(coordinates['x'] - 3.6) < 1e-6
assert abs(coordinates['x'][0] - 0.) < 1e-6 and abs(coordinates['x'][-1] - 3.6) < 1e-6

0 comments on commit 80174e1

Please sign in to comment.