Open fredjaya opened 1 year ago
Possibly useful resources for testing:
Easiest might be to remove the optimise_sN_prevalence()
warning entirely. However as optimise_sN_prevalence()
calls optimise_s_prevalence()
repeatedly, the latter might issue the warning multiple times. This is not ideal --- it would be nicer to just have one warning from optimise_sN_prevalence()
. If it's possible to catch the warnings from optimise_s_prevalence()
and then use this warning to trigger a single warning for optimise_sN_prevalence
that would be kind of neat, but if it's not easy, it's not worth it for now.
So in summary, I suggest taking the easy option (remove the warning from optimise_sN_prevalence()
) for now, but leave this issue open as a low-priority enhancement for later.
When intentionally running:
The following message is returned:
The same warning is defined twice separately, once in
optimise_sN_prevalence()
and once inoptimise_s_prevalence()
. I have tried different parameters and if max_s is reached, theoptimise_s_prevalence()
warning is thrown at least once, and the sN warning only occasionally.Options are to:
optimise_sN_prevalence
warningThoughts, Angus?