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

Explicit errors if length_class and growth_parameters argument in multispecies case #22

Open
harryganz opened this issue Apr 24, 2015 · 0 comments

Comments

@harryganz
Copy link
Collaborator

If the RVC object contains multiple species and the user uses the wrong syntax for the length_class or growth_parameters argument there should be an informative error returned. For example, if the user types

getStat(x, "domain", "density", length_class = "LM") 

Where x is an RVC object with mulriple species, he/she will get the error

Error in length_class[[spc]] : subscript out of bounds

This should be replaced with a more informative error.
Also, if the user types

getStat(x, "domain","biomass", growth_parameters = list(a=2e-5,b=3)

where x contains multiple species, he will get biomass estimates for all the species using the server estimates of the parameters without any warning that the input estimates were not used.

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

No branches or pull requests

1 participant