Skip to content

Commit

Permalink
Comonicon failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
KwatMDPhD committed Oct 26, 2023
1 parent 61d7a34 commit 79364ca
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
5 changes: 5 additions & 0 deletions Comonicon.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[sysimg.precompile]
execution_file = ["test/runtests.jl"]

[application.precompile]
execution_file = ["test/runtests.jl"]
30 changes: 24 additions & 6 deletions test/benchmark.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,25 @@ using GSEA

const DIP = joinpath(homedir(), "Desktop", "benchmark")

# ---- #

const DIJ = joinpath(DIP, "json_files")

# ---- #

const DID = joinpath(DIP, "Datasets_and_Phenotypes")

# ---- #

const DIS = joinpath(DIP, "Gene_Sets_Collections")

# ---- #

const DIR = joinpath(DIP, "results")

const AL_ = ("ks", "kli", "kli1", "kliom", "kliop")
# ---- #

const AL_ = ("ks", "kli1", "kli", "kliom", "kliop")

# ---- #

Expand All @@ -42,21 +52,27 @@ function test(st, is_, py, ju)

if any(is_)

pe = Nucleus.String.format(100 - 100 * sum(is_) / size(py, 1))

@error "$st $pe%" view(py, is_, :) view(ju, is_, :)
@error "$st $(Nucleus.String.format(100 - 100 * sum(is_) / size(py, 1)))%" view(py, is_, :) view(
ju,
is_,
:,
)

end

end

# ---- #

function test(st, py, pyi, ju, jui)

test(st, .!isequal.(py[!, pyi], ju[!, jui]), py, ju)

end

function parse_float(fl)
# ---- #

function try_parse(fl)

if fl isa AbstractString

Expand All @@ -68,9 +84,11 @@ function parse_float(fl)

end

# ---- #

function test(st, py, pyi, ju, jui, atol)

test(st, .!isapprox.(parse_float.(py[!, pyi]), ju[!, jui]; atol), py, ju)
test(st, .!isapprox.(try_parse.(py[!, pyi]), ju[!, jui]; atol), py, ju)

end

Expand Down

0 comments on commit 79364ca

Please sign in to comment.