From 595e6357fb79cedbc8e1587e0ffc1aa2664588fd Mon Sep 17 00:00:00 2001 From: Jose Borreguero <borreguero@gmail.com> Date: Wed, 24 Mar 2021 08:54:52 -0400 Subject: [PATCH] Refs #30887 operator "/" not exported for V3D Signed-off-by: Jose Borreguero <borreguero@gmail.com> --- Framework/PythonInterface/plugins/algorithms/SaveHKLCW.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Framework/PythonInterface/plugins/algorithms/SaveHKLCW.py b/Framework/PythonInterface/plugins/algorithms/SaveHKLCW.py index 6725b17697a..94e8edb4b9e 100644 --- a/Framework/PythonInterface/plugins/algorithms/SaveHKLCW.py +++ b/Framework/PythonInterface/plugins/algorithms/SaveHKLCW.py @@ -73,7 +73,7 @@ class SaveHKLCW(PythonAlgorithm): sample_pos = peak_ws.getInstrument().getSample().getPos() source_pos = peak_ws.getInstrument().getSource().getPos() ki_n = sample_pos - source_pos # direction of incident wavevector - ki_n = ki_n / ki_n.norm() + ki_n = ki_n * (1. / ki_n.norm()) for p in peak_ws: if directionCosines: @@ -81,7 +81,7 @@ class SaveHKLCW(PythonAlgorithm): RU = np.dot(R, U) ki = ki_n * (2 * np.pi / p.getWavelength()) kf_n = ki + p.getQLabFrame() # direction of scattered wavevector - kf_n = kf_n / kf_n.norm() + kf_n = kf_n * (1. / kf_n.norm()) dir_cos_1 = np.dot(RU.T, -ki_n) # notice ki direction is reversed dir_cos_2 = np.dot(RU.T, kf_n) f.write( -- GitLab