Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slightly clearer error message for incorrect ensemble sizes #76

Closed
glwagner opened this issue Dec 3, 2021 · 0 comments · Fixed by #80
Closed

Slightly clearer error message for incorrect ensemble sizes #76

glwagner opened this issue Dec 3, 2021 · 0 comments · Fixed by #80

Comments

@glwagner
Copy link
Member

glwagner commented Dec 3, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant