Skip to content

Commit

Permalink
test: use approximate mean value test
Browse files Browse the repository at this point in the history
  • Loading branch information
swharden committed Oct 15, 2024
1 parent f4882fb commit 25b8659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,5 @@ def test_readOneSweep():
abf = pyabf.ABF(abfPath, loadData=False)
channelA = abf.getOnlySweep(sweepIndex=0, channelIndex=0)
channelB = abf.getOnlySweep(sweepIndex=0, channelIndex=1)
assert np.mean(channelA) == -58.870506
assert np.mean(channelB) == -52.948666
assert np.mean(channelA) == pytest.approx(-58.870506, 5)
assert np.mean(channelB) == pytest.approx(-52.948666, 5)

0 comments on commit 25b8659

Please sign in to comment.