From e6e4a50d9031377eb99aebb89032d5929fbadbd1 Mon Sep 17 00:00:00 2001 From: litman90 Date: Tue, 8 Oct 2024 14:41:05 +0100 Subject: [PATCH] bugfix instools (#383) It is a 1 line bugfix. It's not worth bothering other maintainers. --- 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)