Skip to content

Commit 21101cf

Browse files
committed
fix syntax
1 parent 4ed5f3a commit 21101cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_particle_track.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ def test_nourishment_area_sigma():
488488
vf = particle_track.nourishment_area(walk_data, (3,3),
489489
sigma=0.5, clip=100)
490490
vf[np.isnan(vf)] = 0
491-
assert (pytest.approx(vf, 0.001) == answer)
491+
assert pytest.approx(vf == answer, 0.001)
492492

493493
def test_nourishment_time():
494494
walk_data = dict()
@@ -515,7 +515,7 @@ def test_nourishment_time_sigma():
515515
nt = particle_track.nourishment_time(walk_data, (6, 6),
516516
sigma=0.5, clip=100)
517517
nt[np.isnan(nt)] = 0
518-
assert (pytest.approx(nt, 0.001) == answer)
518+
assert pytest.approx(nt == answer, 0.001)
519519

520520
def test_unstruct2grid_k1():
521521
coords = [(10.5, 10.1),

0 commit comments

Comments
 (0)