Commit 62836df4 authored by Whitfield, Ross's avatar Whitfield, Ross
Browse files

Update omega_scan/

parent 36246a3a
from mantid.simpleapi import LoadNexus
import numpy as np
peaks = LoadNexus('peaks.nxs')
for p in range(peaks.getNumberPeaks()):
peak = peaks.getPeak(p)
g = peak.getGoniometerMatrix()
print(peak.getDetectorID(), peak.getQSampleFrame(), np.mod(np.arctan(g[0,2]/g[0,0])*180/np.pi,-180))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment