Skip to content

Commit

Permalink
put back glaciers2D_plots tests
Browse files Browse the repository at this point in the history
  • Loading branch information
albangossard committed Feb 25, 2025
1 parent 9d10b49 commit b56816d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/simulations/results/results_plotting_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ function plot_glacier_statistics_evolution(results::Results, variables::Vector{S
for metric in metrics
if metric == "average"
if "std" in metrics
band!(ax, t, avg_vals .- std_vals, avg_vals .+ std_vals, fillalpha=0.1, label="Std Dev", color=:lightgray)
band!(ax, t, avg_vals .- std_vals, avg_vals .+ std_vals, alpha=0.1, label="Std Dev", color=:lightgray)
end
lines!(ax, t, avg_vals, label="Average")
elseif metric == "median"
Expand Down
Binary file modified test/data/glaciers/glaciers2D_test_temporal.jld2
Binary file not shown.
10 changes: 5 additions & 5 deletions test/plot_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function glaciers2D_plots()
@testset "plot_glacier tests" begin
@testset "Heatmaps" begin
try
plot_glacier(results[2], "heatmaps", [:H,:B])
plot_glacier(results[1], "heatmaps", [:H,:B])
@test true
catch
@test false
Expand All @@ -16,7 +16,7 @@ function glaciers2D_plots()

@testset "Statistics Evolution" begin
try
plot_glacier(results[2], "evolution_statistics", [:H], tspan=(2010.0,2015.0), metrics=["average","std","max","median","min"])
plot_glacier(results[1], "evolution statistics", [:H], tspan=(2010.0,2015.0), metrics=["average","std","max","median","min"])
@test true
catch
@test false
Expand All @@ -25,7 +25,7 @@ function glaciers2D_plots()

@testset "Difference Evolution" begin
try
plot_glacier(results[2], "evolution_difference", [:H], tspan=(2010.0,2015.0), metrics=["difference","hist"])
plot_glacier(results[1], "evolution difference", [:H], tspan=(2010.0,2015.0), metrics=["difference","hist"])
@test true
catch
@test false
Expand All @@ -34,7 +34,7 @@ function glaciers2D_plots()

@testset "Integrated Volume" begin
try
plot_glacier(results[2], "integrated_volume", [:H], tspan=(2010.0,2015.0))
plot_glacier(results[1], "integrated volume", [:H], tspan=(2010.0,2015.0))
@test true
catch
@test false
Expand All @@ -43,7 +43,7 @@ function glaciers2D_plots()

@testset "Bias" begin
try
plot_glacier(results[2], "bias", [:B,:S])
plot_glacier(results[1], "bias", [:B,:S])
@test true
catch
@test false
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ENV["GKSwstype"]="nul"

@testset "Glaciers 2D constructors w/ glathida data" glaciers2D_constructor(use_glathida_data=true, save_refs=false)

#@testset "Glaciers 2D plots" glaciers2D_plots()
@testset "Glaciers 2D plots" glaciers2D_plots()

@testset "Video plot test" make_thickness_video_test()

Expand Down

0 comments on commit b56816d

Please sign in to comment.