Skip to content

Commit

Permalink
Updated two tests to reflect that stdevs can be None by default if th…
Browse files Browse the repository at this point in the history
…ey are not computed.
  • Loading branch information
Martin Roelfs committed Apr 8, 2017
1 parent 1a851d0 commit 8254e74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_constrained.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8254e74

Please sign in to comment.