From d96f41fd06c8f20bfd14487043b6be1ceedb5966 Mon Sep 17 00:00:00 2001 From: Saransh Date: Wed, 13 Nov 2024 12:23:43 -0800 Subject: [PATCH] Update hexrd/xrdutil/phutil.py Co-authored-by: Patrick Avery --- hexrd/xrdutil/phutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hexrd/xrdutil/phutil.py b/hexrd/xrdutil/phutil.py index 1f847348..512c3399 100644 --- a/hexrd/xrdutil/phutil.py +++ b/hexrd/xrdutil/phutil.py @@ -396,7 +396,7 @@ def calc_phi_x(bvec, eHat_l): if np.isclose(bv_norm, 0): return 0. else: - bv = bv/np.linalg.norm(bv) + bv = bv / bv_norm return np.arccos(np.dot(bv, -eHat_l)).item()