From 6956aef67e08d5d37ef5846cbab5cfe4ffe246d7 Mon Sep 17 00:00:00 2001 From: nefrathenrici Date: Fri, 16 Feb 2024 16:12:52 -0800 Subject: [PATCH] fixes --- docs/src/emulate_sample_example.jl | 13 +++++++++++-- test/Project.toml | 1 + test/runtests.jl | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/docs/src/emulate_sample_example.jl b/docs/src/emulate_sample_example.jl index cfd576c9..0adc5347 100644 --- a/docs/src/emulate_sample_example.jl +++ b/docs/src/emulate_sample_example.jl @@ -11,10 +11,19 @@ import CalibrateAtmos as CAL y_obs = [261.5493] y_noise_cov = [0.02619;;] -ekp = JLD2.load_object(joinpath("assets", "eki_file_for_emulate_example.jld2")) +ekp = JLD2.load_object( + joinpath( + pkgdir(CAL), + "docs", + "src", + "assets", + "eki_file_for_emulate_example.jld2", + ), +) init_params = [EKP.get_u_final(ekp)[1]] -println(pwd()) + prior_path = joinpath( + pkgdir(CAL), "experiments", "sphere_held_suarez_rhoe_equilmoist", "parameters.toml", diff --git a/test/Project.toml b/test/Project.toml index be81e530..b017bfec 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -5,6 +5,7 @@ CalibrateEmulateSample = "95e48a1f-0bec-4818-9538-3db4340308e3" ClimaCore = "d414da3d-4745-48bb-8d80-42e94e092884" Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" EnsembleKalmanProcesses = "aa8a2aa5-91d8-4396-bcef-d4f2ec43552d" +JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" diff --git a/test/runtests.jl b/test/runtests.jl index b45bf29d..7660935b 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -2,4 +2,4 @@ using Test include("test_init.jl") include("test_atmos_config.jl") -include("test_emulate_sample.jl") \ No newline at end of file +include("test_emulate_sample.jl")