From 132e4c2b7de01f1ae0a3e2acfc4ecedb2e041a30 Mon Sep 17 00:00:00 2001 From: Yair Litman Date: Tue, 8 Oct 2024 14:27:35 +0100 Subject: [PATCH] bugfix instools --- ipi/utils/instools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipi/utils/instools.py b/ipi/utils/instools.py index 387ba154a..7c90f0298 100644 --- a/ipi/utils/instools.py +++ b/ipi/utils/instools.py @@ -209,7 +209,7 @@ def get_imvector(h, m3): verbosity.low, ) - imv = w[:, 0] * (m3[:] ** 0.5) + imv = w[:, 0] / (m3[:] ** 0.5) imv = imv / np.linalg.norm(imv) return imv.reshape(1, imv.size)