StoXProject / RstoxFDA

Fisheries Dependent Analysis with Rstox
https://stoxproject.github.io/RstoxFDA
GNU Lesser General Public License v3.0
0 stars 1 forks source link

warn when invalid length intervals in traceplots #88

Closed edvinf closed 10 months ago

edvinf commented 1 year ago

The traceplot function supports providing a length interval to get age-length-group traces. For convenience, length groups are not displayed in legends, when there are only one pr age group. This may cause confusion as predictions are commonly run with the collapselength option, which collapses all length groups into one. The option seems to not be working, and users may benefit from being reminded that length-groups are collapsed.

A solution may be to issue a warning or an error when the length-interval are smaller than the length intervals in the prediction-data.

edvinf commented 10 months ago

RstoxFDA already provides a warning like this. It was overlooked by reporting users because the project contained many warnings. I have extended the error message to explicitly reference the parameters 'LengthResolution' and 'CollapseLength'.