I removed the lines if not self.externally_updated: # do not safely assume already handled and if self.needs_update or force: from the synthesise function of Likelihood.py to not allow the function just skip the synthetic data production if it thinks that parameters are unchanged or already externally provided, even though they are not. The parameter vector is a mandatory argument for this function, so it would be confusing not to use it.
After this fix, synthetic data can be created even if having set externally_updated=True for the likelihood object. In addition, the parameter values should not become None anymore when checking if they are within the bounds.
I removed the lines
if not self.externally_updated: # do not safely assume already handled
andif self.needs_update or force:
from the synthesise function ofLikelihood.py
to not allow the function just skip the synthetic data production if it thinks that parameters are unchanged or already externally provided, even though they are not. The parameter vector is a mandatory argument for this function, so it would be confusing not to use it.After this fix, synthetic data can be created even if having set
externally_updated=True
for the likelihood object. In addition, the parameter values should not becomeNone
anymore when checking if they are within the bounds.