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
NIFTy
Commits
fdb84c42
Commit
fdb84c42
authored
Aug 25, 2018
by
Martin Reinecke
Browse files
The property now returns all samples
parent
7e1cd862
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/minimization/kl_energy.py
View file @
fdb84c42
...
...
@@ -78,8 +78,12 @@ class KL_Energy(Energy):
@
property
def
metric
(
self
):
if
ntask
>
1
:
raise
ValueError
(
"not supported when MPI is active"
)
return
self
.
_metric
@
property
def
samples
(
self
):
return
self
.
_samples
res
=
_comm
.
allgather
(
self
.
_samples
)
res
=
[
item
for
sublist
in
res
for
item
in
sublist
]
return
res
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