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

Suggested modifications for age-selectivity type 11 #216

Merged
merged 3 commits into from
Feb 1, 2024

Conversation

kellijohnson-NOAA
Copy link
Contributor

when working with age-specific selectivity of 1.0 for a range of ages.

Sorry if I made this pull request to the wrong base branch, i.e., it should not go into main. Feel free to suggest a different branch and I can rebase and submit a different/modified pull request.

The change in wording will be helpful to users that are new to selectivity type = 11. Even though I have used the type before I had to go to the Report.sso to make sure that it was doing what I thought it was. I was not sure if the parameters corresponded to the bins for ages or to the actual age numbers themselves. I also included an example in the suggested text.

when working with age-specific selectivity of 1.0 for a range of ages.
@kellijohnson-NOAA kellijohnson-NOAA added the documentation Improvements or additions to documentation label Jan 31, 2024
Copy link
Contributor

@iantaylor-NOAA iantaylor-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a helpful clarification.

I would make two additional changes if you have time.

First, I would move the description of the age-selectivity approach to the top, because I think it is more commonly used and is simpler to describe. Then the average reader doesn't have to sift through the stuff about population length bins to get what they want.

Second, I would change the last sentence from "The maximum age allowed is equal to the maximum age in the modelled population, not the maximum age in the data bins." to "The maximum p2 value allowed is the maximum age, not the maximum age bin." The terms "maximum age" and "age bin" are commonly used throughout the User Manual and I think are clear enough.

@iantaylor-NOAA
Copy link
Contributor

Clarification: I edited the second suggestion to read "from...to..." instead of "to...to...".

@Rick-Methot-NOAA
Copy link
Collaborator

Also: selectivity operates on real ages, not data age bins.

@kellijohnson-NOAA
Copy link
Contributor Author

@iantaylor-NOAA thank you for the helpful suggestions. If you have time, can you go ahead and just make the needed changes directly to this branch?

@iantaylor-NOAA
Copy link
Contributor

I just attempted to implement my suggested changes--slightly differently than what I originally thought.

@Rick-Methot-NOAA, I added you as a review hoping you can look at this one more time.

@kellijohnson-NOAA
Copy link
Contributor Author

Thanks @iantaylor-NOAA, there is one typo though The these .

@e-perl-NOAA
Copy link
Collaborator

Just fixed that Kelli!

@iantaylor-NOAA
Copy link
Contributor

@Rick-Methot-NOAA,
Looking at the mirror_mask and mirror_mask_a vectors at
https://github.com/nmfs-ost/ss3-source-code/blob/main/SS_readcontrol_330.tpl#L4241
and
https://github.com/nmfs-ost/ss3-source-code/blob/main/SS_readcontrol_330.tpl#L4319
I see that the 1e-10 constant seems to only be added to the length-based formulation, not the age-based version. If you recall some good reason for that difference, we could document it for posterity. If it's just happenstance, I don't see a need to spend more time on this.

@Rick-Methot-NOAA
Copy link
Collaborator

No good reason for the difference. Just happenstance by not doing both at same time and not having today's coding tools at the time.

Copy link
Collaborator

@Rick-Methot-NOAA Rick-Methot-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Definitely more informative. The rationale for the small constant with length selectivity is lost in antiquity but I suspect it was because of crashes that were happening due to no fish being selected.

@kellijohnson-NOAA
Copy link
Contributor Author

Thank you everyone for your help on this pull request. @e-perl-NOAA I will leave it to you to merge it in to whatever branch you want when you think the time is appropriate.

@e-perl-NOAA e-perl-NOAA merged commit c5ae076 into main Feb 1, 2024
4 checks passed
@e-perl-NOAA e-perl-NOAA deleted the age-selectivity-11 branch May 2, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants