Commit 50a40ee1 authored by theos's avatar theos

Fixed a VisibleDeprecationWarning.

parent 306e695a
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment