From c68c018f9640e5c7624f40596d30833e9242d1fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-No=C3=ABl=20Grad?= Date: Wed, 19 Feb 2020 11:32:57 +0100 Subject: [PATCH] Fix electrophoresis sample test The two values changed after the polymer refactoring in #3484. --- testsuite/scripts/samples/test_electrophoresis.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/testsuite/scripts/samples/test_electrophoresis.py b/testsuite/scripts/samples/test_electrophoresis.py index d13f3994672..f1532a2b871 100644 --- a/testsuite/scripts/samples/test_electrophoresis.py +++ b/testsuite/scripts/samples/test_electrophoresis.py @@ -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)