8000 [Bug]: SSbiologytables() not working for many model configurations · Issue #983 · r4ss/r4ss · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Bug]: SSbiologytables() not working for many model configurations #983
Open
@iantaylor-NOAA

Description

@iantaylor-NOAA

Describe the bug

Thanks to @akatan999 for reporting that the SSbiologytables() function was crashing.

This function was added by @chantelwetzel-noaa in 2018 in response to a request by Jim Hastie for additional tables of selectivity by fleet and biology at age in the US West Coast groundfish assessment reports and was designed to work for our typical model configurations.

However, the function does not currently work correctly for a variety of common model configurations, including single-sex models and models without length-based selectivity. Also, I don't see any reference to this function being used in any code on github, including in recent US West Coast groundfish assessments.

Here are a few options going forward

  1. deprecate the function and let users write their own model-specific or region-specific code in different packages to create whatever tables they need (for NOAA folks, this could include adding these tables to the https://github.com/nmfs-ost/satf package if the tables are deemed necessary for our reports in the future)
  2. fix the function to work for all model configurations
  3. modify the function to exit with a warning if you apply it to a configuration which is not supported.

I like option 1 best but am open to option 2. Option 3 doesn't seem helpful.

@chantelwetzel-noaa, if we choose option 2 I'm happy to do the work, but your input on whether it's a good idea would be appreciated.

To Reproduce

Run SSbiologytables() on a single-sex model or one with only age-based selectivity.

Expected behavior

Runs without crashing and writes tables of biology at age and selectivity at age and/or length.

Screenshots

No response

Which OS are you seeing the problem on?

No response

Which versions of r4ss and SS3 are you seeing the problem on?

No response

Additional Context

No response

Code of Conduct

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0