Repository navigation
first commit of discard body wt output to report 32 - #790
Conversation
076868c to
8555dad
Compare
|
There was something wonky in the code to run the tests for the tests models and bootstrap, I just fixed these so hopefully those tests will pass now |
|
@Rick-Methot-NOAA, I'm not sure if this concern is real or not but when copilot inspected the PR it flagged the following:
|
|
Thanks for the reminder CoPilot. You are correct that I need to omit age-retention from the reporting of this quantity. Glad that you did not see any flaw in the calculation itself. |
|
I had copilot review things again and it came up with the following: For
|
|
@e-perl-NOAA Length-based retention should not be allowed with WTage_rd == 1. Length-based retention requires a length-distribution calculated from the age-length key. None of that is meaningful when WTage_rd == 1, even though it is calculated. If I could roll back the clock, I would have enforced elimination of all growth and ALK quantities when WTage_rd == 1. I'll add a trap for WTage_rd == 1 here to prevent the output. |
|
@Rick-Methot-NOAA, yeah of course, I was just communicating what copilot saw and had questions about when reviewing the PR again |
e-perl-NOAA
left a comment
There was a problem hiding this comment.
This seems good to me after having copilot review it 2x, idk if you want to wait for @iantaylor-NOAA to review it before merging.
|
There will need to be an r4ss augmentation in order to read and display this new output. |
iantaylor-NOAA
left a comment
There was a problem hiding this comment.
The changes all look good to me. There are no modifications needed in r4ss to read the output as the new rows are part of the standard format of the AGE_SELEX table.
I also testing converting the SS3 output to the standard format used by stockplotr using first r4ss::SS_output() and then passing that list to stockplotr::convert_output(). The new rows are available via a command like
converted_output |> dplyr::filter(module_name == "ageselex" & label == "disc_bodywt").
There are currently no r4ss functions that work with either the mean body weight at age output, so I think any new plots of this data type could be added to stockplotr instead of r4ss.
iantaylor-NOAA
left a comment
There was a problem hiding this comment.
Forgot to click "approve" in my previous review so it came through as a comment. Posting again to be able to "approve"
Concisely describe what has been changed/addressed in the pull request.
The format of the new output can be seen at the issue [Feature]: Output body weight-at-age of retained and discarded fish when retention function is used #81
What tests have been done?
Where are the relevant files?
using simple with discard test file. in output, look for runs in report 32 with "disc_bodywt" and "ret_bodywt"
What tests/review still need to be done?
Is there an input change for users to Stock Synthesis?
Additional information (optional).