Skip to content

Commit 86e5eda

Browse files
authored
Fix test_confidence_interval_edge_case (#76)
* add error message and fix assert
1 parent f1345d9 commit 86e5eda

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cinnabar/tests/test_stats.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ def test_confidence_interval_edge_case():
211211

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

0 commit comments

Comments
 (0)