From 80e0869ff03bd2850a20bfc054611a7f08383de0 Mon Sep 17 00:00:00 2001 From: Tek Kshetri <39838116+iamtekson@users.noreply.github.com> Date: Mon, 3 Apr 2023 10:52:29 -0600 Subject: [PATCH] close #1 --- src/safepython/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/safepython/util.py b/src/safepython/util.py index 339c83a..ed473b3 100644 --- a/src/safepython/util.py +++ b/src/safepython/util.py @@ -327,7 +327,7 @@ def aggregate_boot(S, alfa=0.05): for j in range(R): # loop over sample sizes S_m[j, :] = np.nanmean(S[j], axis=0) # bootstrap mean - idx = ~np.isnan(S[j][:, 1]) + idx = ~np.isnan(S[j][:, 0]) if np.sum(idx) < Nboot: warn('Statistics were computed using ' + '%d' % (np.sum(idx))+ ' bootstrap resamples instead of '+'%d' % (Nboot)) @@ -520,4 +520,4 @@ def allrange(y, par): idx = np.full(y.shape, True, dtype=bool) - return idx \ No newline at end of file + return idx