Skip to content

Commit e7d399d

Browse files
authored
Merge branch 'main' into fix-inputbug
2 parents 5af1bd6 + d96b726 commit e7d399d

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ClusterDepth"
22
uuid = "c8d8bbfa-f476-4995-adff-2987f04015d1"
33
authors = ["Benedikt V. Ehinger", "Maanik Marathe"]
4-
version = "0.2.1"
4+
version = "0.2.3"
55

66
[deps]
77
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

docs/src/tutorials/eeg-multichannel.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,3 @@ ax.xlabel = "time";
103103
ax.ylabel = "channel";
104104
Colorbar(fig[:, end+1], hm);
105105
fig
106-
loopvectorization

src/cluster.jl

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,23 @@ function clusterdepth(
2626
rng,
2727
data::AbstractArray;
2828
τ=2.3,
29-
stat_type=:onesample_ttest,
30-
perm_type=:sign,
31-
side_type=:abs,
32-
nperm=5000,
33-
pval_type=:troendle,
34-
(statfun!)=nothing,
35-
statfun=nothing,
29+
stat_type = :onesample_ttest,
30+
perm_type = :sign,
31+
side_type = :abs,
32+
nperm = 5000,
33+
pval_type = :troendle,
34+
(statfun!) = nothing,
35+
statfun = nothing,
36+
permfun = nothing,
3637
)
3738
if stat_type == :onesample_ttest && isnothing(statfun!) && isnothing(statfun)
3839
statfun! = studentt!
3940
statfun = studentt
4041
end
4142
if perm_type == :sign
43+
if isnothing(permfun)
4244
permfun = sign_permute!
45+
end
4346
end
4447
if side_type == :abs
4548
sidefun = abs

0 commit comments

Comments
 (0)