Skip to content
Snippets Groups Projects
Commit 415558f2 authored by Philipp Arras's avatar Philipp Arras
Browse files

Make Nprobes=1 possible

parent 28684298
Branches
Tags
Loading
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment