From 30b7eeee40bb09566a5bf39331048383ca589a07 Mon Sep 17 00:00:00 2001 From: Devin Francom Date: Fri, 20 Sep 2024 08:31:52 -0600 Subject: [PATCH] Update test_friedman_fit.py np.alltrue to np.all for numpy 2.0 compatibility --- tests/test_friedman_fit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_friedman_fit.py b/tests/test_friedman_fit.py index a7ff303..8dec781 100644 --- a/tests/test_friedman_fit.py +++ b/tests/test_friedman_fit.py @@ -115,5 +115,5 @@ def test_friedman_fit(): # Test that the true values of theta are in the 95% credible interval. lower = np.quantile(theta_posterior, .025, 0) upper = np.quantile(theta_posterior, .975, 0) - assert np.alltrue(lower < param_truth['theta']) - assert np.alltrue(param_truth['theta'] < upper) + assert np.all(lower < param_truth['theta']) + assert np.all(param_truth['theta'] < upper)