-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 537: Fix making analysis dataframes and record priors (#535)
* Update changelog.md * Update make_model_priors.jl * Make `define_epiprob` more modular _make_epidata can also be reused elsewhere * restructure analysis dataframe func * fix make_prediction_dataframe_from_output And add simple unit test with committed test data * Revert "fix make_prediction_dataframe_from_output" This reverts commit 7e6238b. * Reapply "fix make_prediction_dataframe_from_output" This reverts commit 14d29b4.
- Loading branch information
1 parent
032457f
commit 8c05d03
Showing
9 changed files
with
141 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
pipeline/test/analysis/make_prediction_dataframe_from_output.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@testset "test dataframe construct for one dataset" begin | ||
using JLD2, DataFramesMeta | ||
output = load(joinpath(@__DIR__(), "test_data.jld2")) | ||
true_mean_gi = 10.0 | ||
|
||
df = make_prediction_dataframe_from_output(output, true_mean_gi) | ||
@test !isempty(df) | ||
@test "Scenario" in names(df) | ||
@test "IGP_Model" in names(df) | ||
@test "Latent_Model" in names(df) | ||
@test "True_GI_Mean" in names(df) | ||
@test "Used_GI_Mean" in names(df) | ||
@test "Reference_Time" in names(df) | ||
@test "Target" in names(df) | ||
@test "q_025" in names(df) | ||
@test "q_25" in names(df) | ||
@test "q_5" in names(df) | ||
@test "q_75" in names(df) | ||
@test "q_975" in names(df) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include("make_prediction_dataframe_from_output.jl") |
Binary file not shown.