Skip to content

Commit

Permalink
i still don't understand why the nothing test fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
Datseris committed Dec 12, 2023
1 parent f495822 commit c71f523
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/significance/surrogates_significance.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function significant_transitions(res::SlidingWindowResults, signif::SurrogatesSi
for i in 1:n_ind
indicator, change_metric, tai = choose_metrics(indicators, change_metrics,
tail, i)
c = view(x_change, :, i) # change metric timeseries
c = view(x_change, :, i) # change metric timeseries
pval_right = view(pvals_right, :, i)
pval_left = view(pvals_left, :, i)
if !isnothing(indicator)
Expand Down
2 changes: 1 addition & 1 deletion test/full_analysis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ end
@test count(>(1), c) == 1

# surrogates
signif = SurrogatesSignificance(n = 100, tail = :left, p = 0.05)
signif = SurrogatesSignificance(surromethod = RandomShuffle(), n = 1000, tail = :both, p = 0.05)
flags = significant_transitions(res, signif)

@test count(flags) == 1
Expand Down

0 comments on commit c71f523

Please sign in to comment.