From 15f4c4cddba34de9db0d339e2837ef3f55f2f173 Mon Sep 17 00:00:00 2001 From: Luigi Petrucco Date: Thu, 8 Oct 2020 09:19:52 +0200 Subject: [PATCH] readme fix --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8a4d38e..f038066 100644 --- a/README.md +++ b/README.md @@ -80,9 +80,9 @@ Finally, if we want to log this matrix (e.g., to reconstruct the full transforma ```python target_space = bg.AnatomicalSpace("ipr", stack.shape) -transformation_matrix = AnatomicalSpace.transformation_matrix_to(target_space) +transformation_matrix = source_space.transformation_matrix_to(target_space) # equivalent to: -transformation_matrix = AnatomicalSpace.transformation_matrix_to("ipr", stack.shape) +transformation_matrix = source_space.transformation_matrix_to("ipr", stack.shape) ``` The target get always be defined as a `bg.AnatomicalSpace` object, or a valid origin specification plus a shape (the shape is required only if axes flips are required).