FEAT: enable caching to be disabled in hyper.model.Model
Currently the bilby.hyper.model.Model
class aggressively caches the result of function calls which can help in some instances, but can lead to a range of issues.
This MR doesn't change the default behaviour, but allows users to disable the caching.
I've been using a version of this for a while in GWPopulation
for jax
support, but I think it's worth changing here as it also provides a fix for #524 (closed).
Closes #524 (closed)
Edited by Colm Talbot