Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Whitfield, Ross
wand
Commits
62836df4
Commit
62836df4
authored
Oct 24, 2018
by
Whitfield, Ross
Browse files
Update omega_scan/peaks_to_detID_omega.py
parent
36246a3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
omega_scan/peaks_to_detID_omega.py
View file @
62836df4
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
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment