Skip to content

analyze_iteration is run after update_ensemble!, but its docstring says otherwise #249

@xkykai

Description

@xkykai

See this line:

After each evaluation of the observation map and before updating the ensemble,

which states that analyze_iteration is run before update_ensemble!. However here:

terminate = update_ensemble!(ekp, g_ensemble, output_dir, iteration, prior)
try
analyze_iteration(ekp, g_ensemble, prior, output_dir, iteration)
catch ret_code
@error "`analyze_iteration` crashed. See stacktrace" exception =
(ret_code, catch_backtrace())
end

However in the source code analyze_iteration is run after update_ensemble!.

So either the source code or the docstring should be changed, but I think analyze_iteration should be run before update_ensemble!? This is so that diagnostics about the calibration can be made on the forward runs and the EKP object before it is updated.

Or perhaps we need another helper that enables the user to also analyze the iteration after update_ensemble! to look at the updated EKP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions