From 9965fc7ead3a771584dece9ed170287465f94d59 Mon Sep 17 00:00:00 2001 From: weinmusn Date: Fri, 30 Oct 2026 08:50:44 +0100 Subject: [PATCH] Correct sign in phase trekking for motion --- python/MRzeroCore/simulation/main_pass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/MRzeroCore/simulation/main_pass.py b/python/MRzeroCore/simulation/main_pass.py index 00a6259..464610b 100644 --- a/python/MRzeroCore/simulation/main_pass.py +++ b/python/MRzeroCore/simulation/main_pass.py @@ -267,7 +267,7 @@ def calc_mag(ancestor: tuple) -> torch.Tensor: # Diffusion for whole trajectory + T2 relaxation + final phase carried by motion dist.mag = dist.mag * r2 * diffusion[-1, :] if isinstance(motion_phase, torch.Tensor): - dist.mag = dist.mag * torch.exp(2j * np.pi * motion_phase[-1, :]) + dist.mag = dist.mag * torch.exp(-2j * np.pi * motion_phase[-1, :]) dist.kt_vec = dist_traj[-1] else: # z or z0 k = 2 * torch.pi * torch.linalg.vector_norm(dist.kt_vec[:3])