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
b511fde7
Commit
b511fde7
authored
Apr 28, 2016
by
theos
Browse files
Removed some commented code and fixed a PEP8 issue.
parent
c448ab64
Pipeline
#2072
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
d2o/distributor_factory.py
View file @
b511fde7
...
...
@@ -1448,17 +1448,7 @@ class _slicing_distributor(distributor):
return
global_where
def
unique
(
self
,
data
):
# # if the size of the MPI communicator is equal to 1, the
# # reduce operator will not be applied. -> Cover this case directly.
# if self.comm.size == 1:
# unique_data = np.unique(data)
# else:
# data = data.flatten()
# (mpi_unique, bufferQ) = op_translate_dict[np.unique]
# unique_data = self.comm.allreduce(data, op=mpi_unique)
# return unique_data
#if the size of the MPI communicator is equal to 1, the
# if the size of the MPI communicator is equal to 1, the
# reduce operator will not be applied. -> Cover this case directly.
comm
=
self
.
comm
size
=
self
.
comm
.
size
...
...
@@ -1908,7 +1898,7 @@ class _not_distributor(distributor):
return
recvbuf
def
contraction_helper
(
self
,
parent
,
function
,
allow_empty_contractions
,
axis
=
None
,
**
kwargs
):
axis
=
None
,
**
kwargs
):
if
axis
==
():
return
parent
.
copy
()
...
...
Write
Preview
Supports
Markdown
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