Skip to content

Slightly clearer error message for incorrect ensemble sizes #76

@glwagner

Description

@glwagner

Perhaps instead of

if !(size(g)[2] == ekp.N_ens)
throw(DimensionMismatch("ensemble size in EnsembleKalmanProcess and g do not match, try transposing g or check ensemble size"))
end

something like

"N_ens in EnsembleKalmanProcess and g do not match..."

or "Ensemble size N_ens in EnsembleKalmanProcess..."

The first time I saw this error, it took me a little while to figure out that N_ens is the ensemble size.

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