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
IMAGINE
Commits
47a607be
Commit
47a607be
authored
Nov 17, 2017
by
Theo Steininger
Browse files
Made likelihood check in Pipeline optional.
parent
e518c47d
Changes
1
Hide whitespace changes
Inline
Side-by-side
imagine/pipeline.py
View file @
47a607be
...
...
@@ -57,6 +57,7 @@ class Pipeline(Loggable, object):
self
.
sample_callback
=
sample_callback
self
.
fixed_random_seed
=
None
self
.
check_threshold
=
False
@
property
def
observer
(
self
):
...
...
@@ -160,7 +161,8 @@ class Pipeline(Loggable, object):
comm
.
send
(
cube_content
,
dest
=
i
,
tag
=
WORK_TAG
)
self
.
logger
.
debug
(
"Sent multinest-cube to nodes with rank > 0."
)
likelihood
=
self
.
_core_likelihood
(
cube_content
)
if
likelihood
<
0
:
if
likelihood
<
self
.
likelihood_threshold
or
\
not
self
.
check_threshold
:
break
else
:
self
.
logger
.
error
(
"Positive log-likelihood value encountered!"
...
...
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