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

LSM error function In e1@.Data - e2 #22

Open
19anita89 opened this issue Jul 2, 2021 · 3 comments
Open

LSM error function In e1@.Data - e2 #22

19anita89 opened this issue Jul 2, 2021 · 3 comments

Comments

@19anita89
Copy link

In the LSM function I get an error:

Error in eval (call, parent.frame ()):
dims [product 8] do not match the length of object [10]
In addition: Warning message:
In e1 @ .Data - e2:
longer object length is not a multiple of shorter object length

when I look for where the error is, I find that it is here:

diff <- sum (abs (harvest (stock) [, ac (range (stock) ["maxyear"])] - Fnew))

Thank you for helping me with this error.

@iagomosqueira iagomosqueira transferred this issue from flr/FLCore Jul 4, 2021
@iagomosqueira
Copy link
Member

The function assumed the wrong dimensions for the stock object. The tutorial has now been corrected, but let me know if it works for you.

@19anita89
Copy link
Author

19anita89 commented Jul 5, 2021 via email

@iagomosqueira
Copy link
Member

Yes, the example there assumes the index is structured by age. Not sure if there are implementations of the method for a biomass index, but should be possible to derive it once some assumption on selectivity is made,

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

2 participants