Skip to content
GitLab
Menu
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
e518c47d
Commit
e518c47d
authored
Nov 17, 2017
by
Theo Steininger
Browse files
Fixed bug in Pipeline
parent
b8e397a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
imagine/pipeline.py
View file @
e518c47d
...
...
@@ -154,12 +154,11 @@ class Pipeline(Loggable, object):
if
rank
!=
0
:
raise
RuntimeError
(
"_multinest_likelihood must only be called on "
"rank==0."
)
for
i
in
xrange
(
1
,
size
):
comm
.
send
(
cube_content
,
dest
=
i
,
tag
=
WORK_TAG
)
self
.
logger
.
debug
(
"Sent multinest-cube to nodes with rank > 0."
)
error_count
=
0
while
error_count
<
5
:
for
i
in
xrange
(
1
,
size
):
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
:
break
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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