Commit 1cb7af7a authored by Theo Steininger's avatar Theo Steininger

Fixed power_analyze

parent b19f65d6
Pipeline #16534 passed with stages
in 22 minutes and 44 seconds
...@@ -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,
......
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