Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisRenchon committed Mar 6, 2024
1 parent 6909246 commit 5d77467
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function fluxnet_dashboard(menu, menu2)
figs = make_plots(
simulation_inputs,
simulation_outputs;
save = false,
save_fig = false,
dashboard = true,
)
return Dict(
Expand Down
8 changes: 5 additions & 3 deletions lib/ClimaLandSimulations/src/utilities/makie_plots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -464,12 +464,14 @@ function make_plots(
inputs,
climaland;
FT = Float64,
save = true,
save_fig = true,
dashboard = false,
) # will run for any inputs or climaland output of FLUXNET sites

if dashboard == true
WGLMakie.activate!() # for dashboards
else
CairoMakie.activate!()
end

earth_param_set = LP.LandParameters(FT)
Expand Down Expand Up @@ -506,7 +508,7 @@ function make_plots(
earth_param_set,
)

if save == true
if save_fig == true
if isdir("figures")
nothing
else
Expand All @@ -528,7 +530,7 @@ function make_plots(
return nothing
end

if save == false
if save_fig == false
return (
timeseries = fig1,
water = fig2,
Expand Down

0 comments on commit 5d77467

Please sign in to comment.