Skip to content

Commit 6342715

Browse files
committed
Change order of iteration in make_plots for EDMFSpherePlots
1 parent 89ebd04 commit 6342715

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

post_processing/ci_plots.jl

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1597,25 +1597,20 @@ function make_plots(::EDMFSpherePlots, output_paths::Vector{<:AbstractString})
15971597

15981598
short_name_tuples = pair_edmf_names(short_names)
15991599

1600-
# The hierarchy is:
1601-
# - A vector looping over variables
1602-
# - Containing, a vector looping over latitudes
1603-
# - Containing, tuples with one or two variables
1604-
# - Repeated for each simdir
1605-
# All of this is flattened out to be a vector of tuples (with the two gridmean/updraft
1606-
# variables)
1600+
# Create a flat sequence of variable groups iterating over variable,
1601+
# latitude, and simulation directory
16071602
var_groups_zt = vcat(
1608-
map_comparison(simdirs, short_name_tuples) do simdir, name_tuple
1609-
return [
1610-
(
1603+
[
1604+
map_comparison(simdirs, latitudes) do simdir, lat
1605+
return (
16111606
slice(
16121607
get(simdir; short_name, reduction, period),
16131608
lon = 0.0,
16141609
lat = lat,
16151610
) for short_name in name_tuple
1616-
) for lat in latitudes
1617-
]
1618-
end...,
1611+
)
1612+
end for name_tuple in short_name_tuples
1613+
]...,
16191614
)
16201615

16211616
var_groups_z = [

0 commit comments

Comments
 (0)