Skip to content
Snippets Groups Projects
Commit 00ef7a84 authored by pswain's avatar pswain
Browse files

change(indexing): temporarily revert method

parent 5b885b36
No related branches found
No related tags found
No related merge requests found
...@@ -114,10 +114,16 @@ def _assoc_indices_to_3d(ndarray: np.ndarray): ...@@ -114,10 +114,16 @@ def _assoc_indices_to_3d(ndarray: np.ndarray):
""" """
result = ndarray result = ndarray
if len(ndarray) and ndarray.ndim > 1: if len(ndarray) and ndarray.ndim > 1:
result = np.transpose( columns = np.arange(ndarray.shape[1])
np.hstack((ndarray[:, [0]], ndarray)).reshape(-1, 2, 2),
axes=[0, 2, 1], result = np.stack(
(
ndarray[:, np.delete(columns, -1)],
ndarray[:, np.delete(columns, -2)],
),
axis=1,
) )
return result return result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment