Commit 415558f2 authored by Philipp Arras's avatar Philipp Arras

Make Nprobes=1 possible

parent 28684298
......@@ -52,4 +52,7 @@ def probe_with_posterior_samples(op, post_op, nprobes):
for i in range(nprobes):
sample = post_op(op.generate_posterior_sample())
sc.add(sample)
if nprobes == 1:
return sc.mean, None
return sc.mean, sc.var
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment