Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Whitfield, Ross
wand
Commits
77d60a94
Commit
77d60a94
authored
Oct 24, 2018
by
Whitfield, Ross
Browse files
Update omega_scan/.#peaks_to_detID_omega.py omega_scan/peaks_to_detID_omega.py
parent
62836df4
Changes
2
Show whitespace changes
Inline
Side-by-side
omega_scan/.#peaks_to_detID_omega.py
deleted
120000 → 0
View file @
62836df4
rwp
@
diffuse
.
2762
:
1540218528
\ No newline at end of file
omega_scan/peaks_to_detID_omega.py
View file @
77d60a94
...
...
@@ -6,4 +6,7 @@ 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
))
detID
=
peak
.
getDetectorID
()
x
=
detID
//
(
4
*
4
*
128
)
y
=
detID
%
(
4
*
128
)
//
4
print
(
detID
,
peak
.
getQSampleFrame
(),
np
.
mod
(
np
.
arctan
(
g
[
0
,
2
]
/
g
[
0
,
0
])
*
180
/
np
.
pi
,
-
180
),
x
,
y
)
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