Skip to content

Commit 855ec36

Browse files
.DS_Store banished!
1 parent ad7f57f commit 855ec36

File tree

8 files changed

+293
-366
lines changed

8 files changed

+293
-366
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

src/GHWT.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ function ghwt_analysis!(G::GraphSig; GP::GraphPart = nothing, c2f::Bool = true)
232232
#
233233
# 0. Preliminaries
234234
#
235-
if GP == nothing
235+
if isnothing(GP)
236236
GP = partition_tree_fiedler(G)
237237
end
238238

@@ -680,7 +680,7 @@ function ghwt_c2f_bestbasis(dmatrix::Array{Float64,3}, GP::GraphPart;
680680
# "flatten" dmatrix
681681
if fcols > 1
682682
dmatrix0 = deepcopy(dmatrix) # keep the original dmatrix as dmatrix0
683-
if flatten != nothing
683+
if !isnothing(flatten)
684684
dmatrix = dmatrix_flatten(dmatrix, flatten)
685685
end
686686
end
@@ -763,7 +763,7 @@ function ghwt_f2c_bestbasis(dmatrix::Array{Float64,3}, GP::GraphPart;
763763
# "flatten" dmatrix
764764
if fcols > 1
765765
dmatrix0 = deepcopy(dmatrix) # keep the original dmatrix as dmatrix0
766-
if flatten != nothing
766+
if !isnothing(flatten)
767767
dmatrix = dmatrix_flatten(dmatrix, flatten)
768768
end
769769
end

src/GHWT_tf_1d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ function ghwt_tf_bestbasis(dmatrix::Array{Float64,3}, GP::GraphPart; cfspec::Flo
216216
dmatrix0 = deepcopy(dmatrix) # keep the original dmatrix as dmatrix0
217217
# "flatten" dmatrix
218218
if fcols > 1
219-
if flatten != nothing
219+
if !isnothing(flatten)
220220
dmatrix = dmatrix_flatten(dmatrix, flatten)[:,:,1]
221221
end
222222
end

0 commit comments

Comments
 (0)