Skip to content
Snippets Groups Projects
Commit 595e6357 authored by Jose Borreguero's avatar Jose Borreguero
Browse files

Refs #30887 operator "/" not exported for V3D


Signed-off-by: default avatarJose Borreguero <borreguero@gmail.com>
parent cb67cda6
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment