From 0f28d4c6fd16998f491787cb6223104590f6919a Mon Sep 17 00:00:00 2001 From: Julia Sloan Date: Tue, 30 Jan 2024 16:48:32 -0800 Subject: [PATCH] use PythonPlot for test plots --- .gitignore | 3 +++ test/Project.toml | 1 + test/conservation_checker_tests.jl | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index 47e5e6369..9e8bf0063 100644 --- a/.gitignore +++ b/.gitignore @@ -51,3 +51,6 @@ testdel.jl # ignore vscode artifacts *.vscode *.DS + +# PythonPlot resources +test/.CondaPkg/* diff --git a/test/Project.toml b/test/Project.toml index bf440a551..6d48907a4 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -20,6 +20,7 @@ Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" PrettyTables = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d" Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" +PythonPlot = "274fc56d-3b97-40fa-a1cd-1b4a50311bf9" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f" SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462" diff --git a/test/conservation_checker_tests.jl b/test/conservation_checker_tests.jl index cf072ace8..c7963219f 100644 --- a/test/conservation_checker_tests.jl +++ b/test/conservation_checker_tests.jl @@ -13,9 +13,13 @@ using Test using NCDatasets using Dates using Downloads +using Plots import ClimaCoupler.Interfacer: AtmosModelSimulation, SurfaceModelSimulation, SurfaceStub, get_field, name +# Change plotting backend to PythonPlot to avoid GR/MacOS issues +Plots.pythonplot() + REGRID_DIR = @isdefined(REGRID_DIR) ? REGRID_DIR : joinpath("", "regrid_tmp/") get_slab_energy(slab_sim, T_sfc) =