Closed rjrosati closed 1 year ago
I think I fixed both of these. There was an update needed for the calls in the distribution generate class. However, it now gives an error when entering a non-dictionary. So the code as before will now give an error. It needs to be like this because in the get_proposal
function it uses the model name to find the proper distribution.
Hi, I've been trying to add in proposals drawn from my prior, but have been having some trouble. I think there are actually two issues here.
The first one is that
DistributionGenerate
always expects a dictionary ofProbDistContainer
objects, unlikeEnsembleSampler
which can handle a rawProbDistContainer
. The docs also suggest that a rawProbDistContainer
should be fine.Here's an example that fails:
Putting in the dictionary structure manually, it looks like
DistributionGenerate
still isn't actually able to generate any proposals. There's an extra argument onDistributionGenerate.get_proposal
that isn't added in the sampling. Here's another minimal example and the errors:The extra argument is never used in the function body as far as I can tell, so this one is probably a pretty easy fix.