Skip to content

Commit

Permalink
add filter SAMPLE_IDS from estimators
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierlabayle committed Feb 1, 2024
1 parent 6cb0118 commit 91c07d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/plots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ end
function load_results(file_or_prefix; verbosity=0)
verbosity > 0 && @info "Loading results."
results = isfile(file_or_prefix) ? read_results_file(file_or_prefix) : read_results_files(file_or_prefix)
estimators = collect(keys(first(results)))
estimators = collect(key for key keys(first(results)) if key !== :SAMPLE_IDS)
results_df = DataFrame([[r[id] for r in results] for id in 1:length(estimators)], estimators)
for estimator in estimators
results_df[!, Symbol(estimator, :_PVALUE)] = [pvalue(x) for x in results_df[!, estimator]]
end
end
return results_df
end

Expand Down
2 changes: 1 addition & 1 deletion test/plots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ TESTDIR = joinpath(pkgdir(TargeneCore), "test")

include(joinpath(TESTDIR, "testutils.jl"))

@testset "Test " begin
@testset "Test generate_summary_plots" begin
tmpdir = mktempdir()
prefix = joinpath(tmpdir, "tmle_output")
make_fake_outputs(; prefix=prefix)
Expand Down

0 comments on commit 91c07d6

Please sign in to comment.