Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/safepython/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -520,4 +520,4 @@ def allrange(y, par):

idx = np.full(y.shape, True, dtype=bool)

return idx
return idx