From 8254e74d5022132d2ca35226c4ae543743502428 Mon Sep 17 00:00:00 2001 From: Martin Roelfs Date: Sat, 8 Apr 2017 15:24:07 +0200 Subject: [PATCH] Updated two tests to reflect that stdevs can be None by default if they are not computed. --- tests/test_constrained.py | 2 +- tests/test_ode.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_constrained.py b/tests/test_constrained.py index dc6e1b16..4e4cebe6 100644 --- a/tests/test_constrained.py +++ b/tests/test_constrained.py @@ -36,7 +36,7 @@ def test_simple_kinetics(self): fit_result = fit.execute(tol=1e-9) self.assertAlmostEqual(fit_result.value(k), 4.302875e-01, 4) - self.assertTrue(np.isnan(fit_result.stdev(k))) + self.assertTrue(fit_result.stdev(k) is None) # These lines should be possible, but dont currently for ODEModels. # It allows the user to force uncertainty estimation by giving sigma diff --git a/tests/test_ode.py b/tests/test_ode.py index 5a3c9c13..51bc2ba6 100644 --- a/tests/test_ode.py +++ b/tests/test_ode.py @@ -116,7 +116,7 @@ def test_simple_kinetics(self): fit_result = fit.execute() # print(fit_result) self.assertAlmostEqual(fit_result.value(k), 4.302875e-01, 4) - self.assertTrue(np.isnan(fit_result.stdev(k))) + self.assertTrue(fit_result.stdev(k) is None) # A, B = ode_model(t=tvec, **fit_result.params) # plt.plot()