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

matchGrowth() gives error when there is no w_inf column #279

Closed
gustavdelius opened this issue Jan 11, 2023 · 1 comment
Closed

matchGrowth() gives error when there is no w_inf column #279

gustavdelius opened this issue Jan 11, 2023 · 1 comment
Labels
bug minor effort Resolving this issue will involve a minor effort setting parameters Issue relates to the part of mizer used for setting up MizerParams objects.

Comments

@gustavdelius
Copy link
Member

matchGrowth() is trying to be nice and tries to calculate the maturity age from von Bertalanffy parameters when age_mat is not supplied. Unfortunately it does this even if there is no w_inf column and this leads to an error message:
Error in names(a_mat) <- sp$species : 'names' attribute [12] must be the same length as the vector [0]

@gustavdelius gustavdelius added bug setting parameters Issue relates to the part of mizer used for setting up MizerParams objects. minor effort Resolving this issue will involve a minor effort labels Jan 11, 2023
@gustavdelius
Copy link
Member Author

This was fixed in commit 30a28f8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug minor effort Resolving this issue will involve a minor effort setting parameters Issue relates to the part of mizer used for setting up MizerParams objects.
Projects
None yet
Development

No branches or pull requests

1 participant