Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
415558f2
Commit
415558f2
authored
Feb 05, 2018
by
Philipp Arras
Browse files
Make Nprobes=1 possible
parent
28684298
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty4/probing/utils.py
View file @
415558f2
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment