Skip to content

Commit

Permalink
Fix test_confidence_interval_edge_case (#76)
Browse files Browse the repository at this point in the history
* add error message and fix assert
  • Loading branch information
zhang-ivy authored Jan 25, 2023
1 parent f1345d9 commit 86e5eda
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cinnabar/tests/test_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ def test_confidence_interval_edge_case():

# RMSE (default mode)
bss = bootstrap_statistic(x_data, y_data, xerr, yerr, statistic="RMSE",
include_true_uncertainty=True,
include_pred_uncertainty=True)
assert (bss['low'] > bss['mle']) or (bss['mle'] > bss['high']), error_message
include_true_uncertainty=False,
include_pred_uncertainty=False)
error_message = "The stat must lie within the bootstrapped 95% CI"
assert (bss['low'] < bss['mle']) and (bss['mle'] < bss['high']), error_message

0 comments on commit 86e5eda

Please sign in to comment.