`samples_to_posterior` fails if the prior is not given
Currently, the prior
default to None. Then in the code it does for _ in prior
which causes an exception of `NoneType object is not iterable. This just needs a quick bug fix.
Currently, the prior
default to None. Then in the code it does for _ in prior
which causes an exception of `NoneType object is not iterable. This just needs a quick bug fix.