Skip to content

Commit

Permalink
add a test using real-world data that was problematic
Browse files Browse the repository at this point in the history
  • Loading branch information
jimrybarski committed Jun 27, 2018
1 parent 944d674 commit b58cecd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/test_biofits.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,11 @@ def test_quadratic_fit_inhibition():
assert kd_stddev > 0
assert delta_y < 0
assert yint > 0


def test_steves_real_data():
concentrations = [0.001, 0.1, 0.3, 1, 3, 10, 30, 100, 300]
signals = [0.297, 0.242, 0.353, 0.461, 0.543, 0.653, 0.780, 0.763, 0.701]
yint, yint_stddev, delta_y, delta_y_stddev, kd, kd_stddev = fit_hyperbola(concentrations, signals)
assert kd == pytest.approx(1.89, rel=0.05)
assert kd_stddev == pytest.approx(0.66, rel=0.05)

0 comments on commit b58cecd

Please sign in to comment.