pfmc-assessments / indexwc

Estimate indices of abundance for west coast fish species
2 stars 1 forks source link

[Feature]: save .RData file before diagnostics #29

Open kellijohnson-NOAA opened 6 months ago

kellijohnson-NOAA commented 6 months ago

Describe the problem your feature request is related to.

I am frequently annoyed when the diagnostics crash and the model is not saved so I have to refit the model. Thanks to @chantelwetzel-noaa for reminding me of this annoying feature.

Describe the solution you'd like

Temporarily save the model file and if everything works then later delete it because it is saved in another location. Eventually this code will be removed once we get all of the diagnostics working.

Describe alternatives you have considered

Just be annoyed that the model needs to be ran again.

Additional context

No response

kellijohnson-NOAA commented 6 months ago

Not closing this issue is a reminder that we will need to remove this code by reverting this commit or something like that in the future once the diagnostics are more stable.