Conversation
k-doering-NOAA
left a comment
There was a problem hiding this comment.
Thanks @Rick-Methot-NOAA for all this work! It looks like a ton of restructuring was necessary for this feature, so it would be good to do thorough testing before merging into main. Could you share with me a tester model that uses predation so I can test?
I took a look through the code and noted mainly 1) where style needs to be made consistent; 2) where comments, output to users, and variable names are unclear; 3) questions about if the statement is correct. I'll admit some of the comments are picky, but I think given our recent efforts to make style more consistent in SS3, it would be helpful to not introduce inconsistent style to the codebase again. Hopefully in the future the styling exe will become good enough that we could feel comfortable just running it before PRs to fix any style changes, but I don't think it is there yet.
I still couldn't tell very well to what extent changes make sense; maybe @iantaylor-NOAA could provide feedback on that deeper aspect.
|
@Rick-Methot-NOAA , sorry, I noted after I did this review that @kellijohnson-NOAA was included as the assignee! Maybe in the future we should just request reviews instead of adding an assignee? I'm not sure assignee makes sense with our workflow, but it doesn't indicate to me that a review is wanted from this person... |
|
Thanks Kathryn for that thorough review. It will take me a while to go through all of them, so I'll start with overall response:
|
|
I have this on my task list for today, though I don't know if I will be able to finish it b/c it might take me a while to get up to speed with all of the changes. |
|
here is an example that includes a predator in a 4 season empirical wt-at-age model. |
Hi, Rick, thanks for all these responses! Certainly, feel free to not address comments I made that you don't agree with, as I don't want perfect to be the enemy of good. A few things, though:
|
|
Most recommended changes were implemented. |
|
@k-doering-NOAA - I hope I addressed your review requests adequately. Did you get the vendance example for testing? |
|
Thanks @Rick-Methot-NOAA , I will take look by Wed at the very latest. I see the example files, thank you! |
|
@Rick-Methot-NOAA , did the changes get pushed up to github? I'm not seeing new commits... |
|
|
Good call @Rick-Methot-NOAA! I've been prioritizing the admb 13 testing over this, but I can course correct and work on reviewing this issue sooner, if needed. The code looks good, but I still wanted to do some model runs. |
|
K - stick with the console project. I can create a suitable test for area-predators. |
|
@Rick-Methot-NOAA , if you can share the area-predators test you create, that would be great! If it runs fast (preferably in <10 min), I think we should add it to our test set when this branch is merged into main so we continue testing the feature. |
|
I modified the vendance example to have areas, then assigned the predator to either area 1 or area 2. The results confirm that predator-by-area is working as expected. I believe this PR is ready to be merged into main. |
|
Thanks @Rick-Methot-NOAA! Luckily this merge conflict was pretty easy to resolve. @kellijohnson-NOAA, do you still think we should set up a test to compare using predM with using the old way as just a fishing fleet and making sure the models should still get the same Z? Or would you support merging it into main given the spatial example Rick has created? |
|
The test of predator as fishing fleet was done when predator fleet was first created last fall with 3.30.18. This new commit makes it area-specific, but in doing so it needed to change internal indexing of natM. Since that internal indexing change has not perturbed anything else in the model, I hope we are good to go. |
k-doering-NOAA
left a comment
There was a problem hiding this comment.
Sounds good @Rick-Methot-NOAA ! I approved the changes, so if you are ready merge into main, go ahead.
- relates to https://github.com/nmfs-stock-synthesis/stock-synthesis#357 - relates to nmfs-ost/ss3-source-code#307 - some existing elements moved around to provide more logical sequence
-section revised in #307
- section revised in #307 - 2nd try after previous building edit onto wrong branch
What issue(s) does this PR address? Describe and add issue numbers, if applicable.
Link issue(s) here: #88 and #235
What tests have been done? Upload any model input files created for testing in a zip file, if possible.
extensive look at all test models, special testing using the predator model: vendance.
What tests/review still need to be done? Who can do it, and by when is it needed (ideally)?
Check which is true. This PR requires:
Describe any changes in r4ss/SS3 manual/SSI/change log that are needed (if not checked):
natural mortality report table has been reformatted
technical description of these changes is in attached doc
natM tech doc.txt
Additional information (optional):