Skip to content
Snippets Groups Projects
Commit 1cb7af7a authored by Theo Steininger's avatar Theo Steininger
Browse files

Fixed power_analyze

parent b19f65d6
Branches
Tags
1 merge request!186Master
Pipeline #
...@@ -463,8 +463,8 @@ class Field(Loggable, Versionable, object): ...@@ -463,8 +463,8 @@ class Field(Loggable, Versionable, object):
"something non-sliced.") "something non-sliced.")
semiscaled_local_shape = [1, ] * len(target_shape) semiscaled_local_shape = [1, ] * len(target_shape)
for i in axes: for i in range(len(axes)):
semiscaled_local_shape[i] = pindex.local_shape[i] semiscaled_local_shape[axes[i]] = pindex.local_shape[i]
local_data = pindex.get_local_data(copy=False) local_data = pindex.get_local_data(copy=False)
semiscaled_local_data = local_data.reshape(semiscaled_local_shape) semiscaled_local_data = local_data.reshape(semiscaled_local_shape)
result_obj = pindex.copy_empty(global_shape=target_shape, result_obj = pindex.copy_empty(global_shape=target_shape,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment