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
D2O
Commits
50a40ee1
Commit
50a40ee1
authored
Jun 23, 2016
by
theos
Browse files
Fixed a VisibleDeprecationWarning.
parent
306e695a
Changes
1
Hide whitespace changes
Inline
Side-by-side
d2o/distributor_factory.py
View file @
50a40ee1
...
...
@@ -1712,8 +1712,9 @@ class _slicing_distributor(distributor):
else
:
new_data
.
data
[:]
=
local_data
.
reshape
(
temp_local_shape
)
else
:
if
np
.
any
(
np
.
array
(
local_data
.
shape
)[
np
.
array
(
sliceified
)]
==
0
):
if
np
.
any
(
np
.
array
(
local_data
.
shape
)[
np
.
where
(
np
.
array
(
sliceified
))]
==
0
):
temp
=
np
.
array
(
temp_local_shape
)
temp
[
0
]
=
0
temp_local_shape
=
tuple
(
temp
)
...
...
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