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

Not easy to modify cod OM as a user #22

Closed
2 of 3 tasks
k-doering-NOAA opened this issue Jun 8, 2020 · 4 comments
Closed
2 of 3 tasks

Not easy to modify cod OM as a user #22

k-doering-NOAA opened this issue Jun 8, 2020 · 4 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@k-doering-NOAA
Copy link
Collaborator

k-doering-NOAA commented Jun 8, 2020

While working on addressing #18, I learned that it is not intuitive on how to change the default cod model (part of package external data) to make new scenarios. For example, just trying to increase the M value lead to many problems (M needed to be changed in both control and par, or changed in control and the model needs to be run with no estimation; ultimately that M scenario is too high and crashed the population, so is probably not a realistic OM).

I think we could add functionality into SSMSE to make this process easier for users:

  • Make a check on the OM files for the SSMSE user: do the control and ss.par files say the same thing? Do the original ctl and control.ss_new say the same thing? Warn or exit on error if they don't. The user needs to be clear on where the model values are coming from. For example, changing the M value control.ss_new file for the cod model alone and leaving the original ss.par file lead to the original M in the ss.par file to be retained, even thought the starter file specified that the values should come from the control file originally (SSMSE changes it to read from the par).
  • Some sort of helper function to allow users to test out new OMs? I'm not sure how exactly to do this, but maybe running the OM through SSMSE and finding it crashing is not the way to go?
  • Expand documentation on changing OMs to make multiple scenarios with different OMs. This will be done to some extent in the readme, but we may need a long form guide eventually.

Probably some other ideas will be obvious as we spend more time trying to use the SSMSE code with more OMs.

@k-doering-NOAA k-doering-NOAA added the enhancement New feature or request label Jun 8, 2020
@k-doering-NOAA
Copy link
Collaborator Author

@nathanvaughan-NOAA suggests changing the iter_list argument for run_SSMSE from a list of vectors to a vector. E.g.,

iter_list = list(1:5, 1:5), # run with 5 iterations each

to

iter_list = c(5,5) # run with 5 iterations each

Pros: makes input simpler; cons: SSMSE will need to do a bit more gymastics to find what to name folders (probably just look for the highest numbered folder in the path it is looking at).

@k-doering-NOAA
Copy link
Collaborator Author

@nathanvaughan-NOAA I was thinking about working on this issue (starting with your suggestion to change the iter_list argument, which I am thinking to change to iter_vec). Would this be ok to do without your changes merged into master from your dev branch? Or should I wait until you merge in so there are less conflicts?

k-doering-NOAA added a commit that referenced this issue Jul 10, 2020
Switch to using NULLinstead of fixed values for function defaults (this was used to provide an example inputs to the user, but now the user can refer to the example instead). Using fixed values for optional inputs like EM_name_vec can become confusing for users.
@k-doering-NOAA k-doering-NOAA added this to the First release milestone Oct 20, 2021
@k-doering-NOAA k-doering-NOAA self-assigned this Oct 26, 2021
@k-doering-NOAA
Copy link
Collaborator Author

the .ss_new model files are used for the OM, but the original files are used for an EM. I think this makes sense, but needs to be documented

@k-doering-NOAA
Copy link
Collaborator Author

I think this is sufficiently dealt with now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant