Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Whitfield, Ross
wand
Commits
63fdac4a
Commit
63fdac4a
authored
Aug 10, 2018
by
Whitfield, Ross
Browse files
Update IPTS-21442/make_4D_temp2.py
parent
1872026d
Changes
1
Hide whitespace changes
Inline
Side-by-side
IPTS-21442/make_4D_temp2.py
View file @
63fdac4a
import
numpy
as
np
import
re
for
run
in
range
(
95409
,
9845
8
):
ws
=
LoadWAND
(
IPTS
=
21442
,
RunNumber
=
run
,
Grouping
=
'4x4'
)
for
run
in
range
(
95409
,
9845
9
,
61
):
ws
=
LoadWAND
(
IPTS
=
21442
,
RunNumber
=
run
,
Grouping
=
'4x4'
)
ub
=
np
.
array
(
re
.
findall
(
r
'-?\d+\.*\d*'
,
ws
.
run
().
getProperty
(
'HB2C:CS:CrystalAlign:UBMatrix'
).
value
[
0
]),
dtype
=
np
.
float
).
reshape
(
3
,
3
)
sgl
=
np
.
deg2rad
(
_tmp_ws
.
run
().
getProperty
(
'HB2C:Mot:sgl.RBV'
).
value
[
0
])
# 'HB2C:Mot:sgl.RBV,1,0,0,-1'
...
...
@@ -14,4 +14,11 @@ for run in range(95409, 98458):
[
-
np
.
sin
(
sgu
),
np
.
cos
(
sgu
),
0
],
[
0
,
0
,
1
]])
UB
=
sgl_a
.
dot
(
sgu_a
).
dot
(
ub
)
# Apply the Goniometer tilts to the UB matrix
SetUB
(
ws
,
UB
=
UB
)
md
=
ConvertToMD
(
ws
,
QDimensions
=
'Q3D'
,
dEAnalysisMode
=
'Elastic'
,
Q3DFrames
=
'HKL'
,
QConversionScales
=
'HKL'
,
OtherDimensions
=
'HB2C:SE:SampleTemp'
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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