Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
odunbar committed Jul 31, 2024
1 parent 69eb4a5 commit 190c0b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions examples/Cloudy/Cloudy_calibrate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,7 @@ N_ens = 50 # number of ensemble members
N_iter = 15 # number of EKI iterations
# initial parameters: n_params x N_ens
initial_params = construct_initial_ensemble(rng, priors, N_ens)
ekiobj = EnsembleKalmanProcess(
initial_params,
truth,
Inversion(),
scheduler = DataMisfitController(),
)
ekiobj = EnsembleKalmanProcess(initial_params, truth, Inversion(), scheduler = DataMisfitController())

# Initialize a ParticleDistribution with dummy parameters. The parameters
# will then be set within `run_dyn_model`
Expand Down Expand Up @@ -194,7 +189,7 @@ save(
ekiobj,
"truth_sample",
get_sample(truth),
"truth_sample_mean",
"truth_sample_mean",
vec(mean(y_t, dims = 2)),
"truth_input_constrained",
ϕ_true,
Expand Down
2 changes: 1 addition & 1 deletion examples/Lorenz/calibrate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ function main()


# Construct observation object
truth = Observation(Dict("samples" => vec(mean(yt, dims = 2)), "covariances" => Γy, "names" => data_names))
truth = Observation(Dict("samples" => vec(mean(yt, dims = 2)), "covariances" => Γy, "names" => data_names))
###
### Calibrate: Ensemble Kalman Inversion
###
Expand Down

0 comments on commit 190c0b0

Please sign in to comment.