Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
D2O
Commits
9061442d
Commit
9061442d
authored
Sep 21, 2016
by
theos
Browse files
Fixed a bug in apply_scalar_function.
parent
28cf619a
Changes
1
Hide whitespace changes
Inline
Side-by-side
d2o/distributed_data_object.py
View file @
9061442d
...
...
@@ -434,10 +434,12 @@ class distributed_data_object(object):
result_data
=
np
.
vectorize
(
function
,
otypes
=
[
local_data
.
dtype
])(
local_data
)
if
inplace
is
True
:
if
inplace
:
result_d2o
=
self
else
:
result_d2o
=
self
.
copy_empty
(
dtype
=
result_data
.
dtype
)
if
dtype
is
None
:
dtype
=
result_data
.
dtype
result_d2o
=
self
.
copy_empty
(
dtype
=
dtype
)
result_d2o
.
set_local_data
(
result_data
,
copy
=
False
)
...
...
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