Skip to content

Commit 32e0bfa

Browse files
committed
use climautilities branch, plot fix
1 parent e68d805 commit 32e0bfa

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.buildkite/Manifest-v1.11.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,9 @@ weakdeps = ["BenchmarkTools", "CUDA", "OrderedCollections", "PrettyTables", "Sta
469469

470470
[[deps.ClimaUtilities]]
471471
deps = ["Artifacts", "ClimaComms", "Dates"]
472-
git-tree-sha1 = "fe1a7b3143f11c017118d3c99f067a09cb622f81"
472+
git-tree-sha1 = "6fc982b79aa17f63fd43899ab428ffbbcc6a4934"
473+
repo-rev = "ne/fd_grid"
474+
repo-url = "https://github.com/CliMA/ClimaUtilities.jl.git"
473475
uuid = "b3f4f4ca-9299-4f7f-bd9b-81e1242a7513"
474476
version = "0.1.26"
475477
weakdeps = ["Adapt", "CUDA", "ClimaCore", "ClimaCoreTempestRemap", "Interpolations", "NCDatasets"]

post_processing/ci_plots.jl

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,18 @@ ColumnPlots = Union{
585585
function make_plots(::ColumnPlots, output_paths::Vector{<:AbstractString})
586586
simdirs = SimDir.(output_paths)
587587
short_names = ["ta", "wa"]
588-
vars = map_comparison(get, simdirs, short_names)
588+
vars = map_comparison(simdirs, short_names) do simdir, short_name
589+
var = get(simdir; short_name)
590+
# For vertical-only (FiniteDifferenceGrid) spaces, the data may have
591+
# extra singleton dimensions. Check and squeeze if needed.
592+
if haskey(var.dims, "x") && length(var.dims["x"]) == 1
593+
var = slice(var; x = var.dims["x"][1])
594+
end
595+
if haskey(var.dims, "y") && length(var.dims["y"]) == 1
596+
var = slice(var; y = var.dims["y"][1])
597+
end
598+
return var
599+
end
589600

590601
make_plots_generic(
591602
output_paths,

0 commit comments

Comments
 (0)