Skip to content

Commit

Permalink
Clean test TDR
Browse files Browse the repository at this point in the history
  • Loading branch information
lbonaldo committed Feb 15, 2024
1 parent a733848 commit 419296f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/test_time_domain_reduction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ import JLD2, Clustering

include(joinpath(@__DIR__, "utilities.jl"))

# suppress printing
console_out = stdout
redirect_stdout(devnull)

test_folder = settings_path = "TDR"
TDR_Results_test = joinpath(test_folder, "TDR_Results_test")
Expand Down Expand Up @@ -54,9 +51,6 @@ clustering_true = JLD2.load(joinpath(TDR_Results_true, "clusters_true.jld2"))["C
R = Clustering.randindex(clustering_test, clustering_true)
I = Clustering.mutualinfo(clustering_test, clustering_true)

# restore printing
redirect_stdout(console_out)

# test clusters
Test.@test round(R[1], digits = 1) == 1 # Adjusted Rand index should be equal to 1
Test.@test round(R[2], digits = 1) == 1 # Rand index should be equal to 1
Expand Down

0 comments on commit 419296f

Please sign in to comment.