From f223b3a932a3bab37d60ca01a9f3a964e629b8b8 Mon Sep 17 00:00:00 2001 From: Felix F Zimmermann Date: Mon, 2 Dec 2024 18:57:26 +0100 Subject: [PATCH] typo --- src/mrpro/utils/reshape.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mrpro/utils/reshape.py b/src/mrpro/utils/reshape.py index c22d15a9..c0b4a9e2 100644 --- a/src/mrpro/utils/reshape.py +++ b/src/mrpro/utils/reshape.py @@ -114,7 +114,7 @@ def _reshape_idx(old_shape: tuple[int, ...], new_shape: tuple[int, ...], old_str Will results in the groups (starting from the right): - old: 3 new: 3 - old: 2, 2 new: 4 - - old: 30 new: 6. 5 + - old: 30 new: 6, 5 Only the "old" groups are important. If all axes that are grouped together in an "old" group are stride 0 (=broadcasted) we can collapse them to singleton dimensions.