You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It must rarely happen but if catch is null in one of the years (hence Fbar, e.g. due to 0 catch advice or in simulations with HCR where SSB is below Blim), the calculation of selectivity l.205 as follows:
sel <- sweep(sel, 2, Fbar, "/")
will return a NaN, than induces errors later in the code that makes the function stops.
A simple fix would be to add l.206:
sel[!is.finite(sel)] <- 0
Maybe not ideal but will solve the problem.
Cheers,
Vanessa
The text was updated successfully, but these errors were encountered:
It must rarely happen but if catch is null in one of the years (hence Fbar, e.g. due to 0 catch advice or in simulations with HCR where SSB is below Blim), the calculation of selectivity l.205 as follows:
sel <- sweep(sel, 2, Fbar, "/")
will return a NaN, than induces errors later in the code that makes the function stops.
A simple fix would be to add l.206:
sel[!is.finite(sel)] <- 0
Maybe not ideal but will solve the problem.
Cheers,
Vanessa
The text was updated successfully, but these errors were encountered: