Skip to content

Commit

Permalink
Fix electrophoresis sample test
Browse files Browse the repository at this point in the history
The two values changed after the polymer refactoring in espressomd#3484.
  • Loading branch information
jngrad committed Feb 19, 2020
1 parent ed9cbaf commit c68c018
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions testsuite/scripts/samples/test_electrophoresis.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ class Sample(ut.TestCase):
system = sample.system

def test_persistence_length(self):
self.assertAlmostEqual(sample.persistence_length, 28., delta=3)
self.assertAlmostEqual(sample.persistence_length_obs, 32., delta=3)
# These two values differ due to undersampling, they converge
# to the same value around N_SAMPLES=1000
self.assertAlmostEqual(sample.persistence_length, 30., delta=3)
self.assertAlmostEqual(sample.persistence_length_obs, 34.8, delta=3)

def test_mobility(self):
self.assertAlmostEqual(sample.mu, 1.02, delta=0.02)
Expand Down

0 comments on commit c68c018

Please sign in to comment.