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
Adds area to get_results_timeseries()
for SSmse
#424
Conversation
There was no need to call gsub twice, when an `|` performed the same task for searching for brackets and colons. Now this is done in one call to `gsub()`.
It worked. Area is now retained in the summary function (SSMSE borrowing from ss3sim), so we can sum TS values across areas by year on the back end for our purposes. Thank you @kellijohnson-NOAA ! |
Thanks @skylersagarese-NOAA for testing it out! @k-doering-NOAA I have assigned you as a reviewer to make sure that I did not break anything for SSmse. Please feel free to say that you do not have time. |
Thanks @kellijohnson-NOAA and @skylersagarese-NOAA , I can review! I am testing the branch to make sure no tests in SSMSE are broken by this change: https://github.com/nmfs-fish-tools/SSMSE/tree/test-ss3sim |
@kellijohnson-NOAA unfortunately this breaks some code in SSMSE (I think because of the new added column). I won't have time to work on fixes until Friday, is it ok to leave this as an on PR until then? |
Yes, that is just fine, @skylersagarese-NOAA said that there was no rush. |
@k-doering-NOAA There is the following failed test in test-runSSMSE.R that is not failing b/c of ss3sim
because If I change the test in
Then both of the checks pass. |
@kellijohnson-NOAA, I think you are right that the indices of the Feel free to merge this in when you are ready! |
For SPRratio and recruitment deviations, because this information is in in the derived quantities and recruitment sections that do not summarize by season or area but rather by year. Determine season of recruitment from elsewhere in the report file rather than just assign 1. Use semantic versioning.
ccac8e5
to
42d44c4
Compare
Thanks @skylersagarese-NOAA for the suggestion and following through with the testing. Also, thanks to @k-doering-NOAA for testing within SSmse! |
I am so excited that the user community wants to add area-specific models to the mix! So, thank you @skylersagarese-NOAA for reaching out. Hopefully this change fixes the lack of area in the time series results for you. Given the slightly complicated workflow here, you will need to install this branch of ss3sim and then run your code for SSmse as we talked. The branch is locally passing the tests but there are 4 warnings related to things that I need to update and do not pertain, or at least I do not think that they pertain, to the code changes for this request. Again, thanks for reaching out and let me know how your testing goes. You can also test the function locally by just installing this branch and running
Once you approve @skylersagarese-NOAA, then I will assign @k-doering-NOAA as a reviewer.