-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
575: Add post-run tests, error if we do not run to t_max r=costachris a=charleskawczynski Closes #574. Co-authored-by: Charles Kawczynski <[email protected]>
- Loading branch information
Showing
17 changed files
with
56 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,5 @@ end | |
end | ||
nothing | ||
end | ||
|
||
include(joinpath("utils", "post_run_tests.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 |
---|---|---|
|
@@ -37,3 +37,5 @@ end | |
end | ||
nothing | ||
end | ||
|
||
include(joinpath("utils", "post_run_tests.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 |
---|---|---|
|
@@ -37,3 +37,5 @@ end | |
end | ||
nothing | ||
end | ||
|
||
include(joinpath("utils", "post_run_tests.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 |
---|---|---|
|
@@ -31,3 +31,5 @@ end | |
end | ||
nothing | ||
end | ||
|
||
include(joinpath("utils", "post_run_tests.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 |
---|---|---|
|
@@ -37,3 +37,5 @@ end | |
end | ||
nothing | ||
end | ||
|
||
include(joinpath("utils", "post_run_tests.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
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 |
---|---|---|
|
@@ -42,3 +42,5 @@ end | |
nothing | ||
|
||
end | ||
|
||
include(joinpath("utils", "post_run_tests.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 |
---|---|---|
|
@@ -37,3 +37,5 @@ end | |
end | ||
nothing | ||
end | ||
|
||
include(joinpath("utils", "post_run_tests.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 |
---|---|---|
|
@@ -37,3 +37,5 @@ end | |
end | ||
nothing | ||
end | ||
|
||
include(joinpath("utils", "post_run_tests.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 |
---|---|---|
|
@@ -31,3 +31,5 @@ end | |
end | ||
nothing | ||
end | ||
|
||
include(joinpath("utils", "post_run_tests.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 |
---|---|---|
|
@@ -37,3 +37,5 @@ end | |
end | ||
nothing | ||
end | ||
|
||
include(joinpath("utils", "post_run_tests.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 |
---|---|---|
|
@@ -37,3 +37,5 @@ end | |
end | ||
nothing | ||
end | ||
|
||
include(joinpath("utils", "post_run_tests.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 |
---|---|---|
|
@@ -37,3 +37,5 @@ end | |
end | ||
nothing | ||
end | ||
|
||
include(joinpath("utils", "post_run_tests.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@testset "Post-run tests" begin | ||
isnan_or_inf(x) = isnan(x) || isinf(x) | ||
NC.Dataset(ds_tc_filename, "r") do ds | ||
profile = ds.group["profiles"] | ||
@test !any(isnan_or_inf.(Array(profile["qt_mean"]))) | ||
@test !any(isnan_or_inf.(Array(profile["updraft_area"]))) | ||
@test !any(isnan_or_inf.(Array(profile["updraft_w"]))) | ||
@test !any(isnan_or_inf.(Array(profile["updraft_qt"]))) | ||
@test !any(isnan_or_inf.(Array(profile["updraft_thetal"]))) | ||
@test !any(isnan_or_inf.(Array(profile["u_mean"]))) | ||
@test !any(isnan_or_inf.(Array(profile["tke_mean"]))) | ||
@test !any(isnan_or_inf.(Array(profile["temperature_mean"]))) | ||
@test !any(isnan_or_inf.(Array(profile["ql_mean"]))) | ||
@test !any(isnan_or_inf.(Array(profile["qi_mean"]))) | ||
@test !any(isnan_or_inf.(Array(profile["thetal_mean"]))) | ||
@test !any(isnan_or_inf.(Array(profile["Hvar_mean"]))) | ||
@test !any(isnan_or_inf.(Array(profile["QTvar_mean"]))) | ||
@test !any(isnan_or_inf.(Array(profile["v_mean"]))) | ||
@test !any(isnan_or_inf.(Array(profile["qr_mean"]))) | ||
end | ||
nothing | ||
end |