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
87096bbb
Commit
87096bbb
authored
Feb 14, 2019
by
Whitfield, Ross
Browse files
Update IPTS-21442/make_4D_temp_HD.py
parent
bf5c1907
Changes
1
Hide whitespace changes
Inline
Side-by-side
IPTS-21442/make_4D_temp_HD.py
View file @
87096bbb
import
numpy
as
np
for
t
in
range
(
5
,
7
):
for
t
in
range
(
5
,
30
):
runNumbers
=
'{}-{}'
.
format
(
95409
+
122
*
(
t
-
5
),
95530
+
122
*
(
t
-
5
))
print
(
t
,
runNumbers
)
LoadWANDSCD
(
IPTS
=
21442
,
RunNumbers
=
runNumbers
,
OutputWorkspace
=
'data_{}K'
.
format
(
t
))
...
...
@@ -12,11 +12,11 @@ for t in range(5,7):
OutputWorkspace
=
'{}K'
.
format
(
t
))
DeleteWorkspace
(
'data_{}K'
.
format
(
t
))
output
=
CreateMDHistoWorkspace
(
4
,
SignalInput
=
[
0
]
*
61
*
6
1
*
2
1
*
25
,
ErrorInput
=
[
0
]
*
61
*
6
1
*
2
1
*
25
,
output
=
CreateMDHistoWorkspace
(
4
,
SignalInput
=
[
0
]
*
101
*
10
1
*
5
1
*
25
,
ErrorInput
=
[
0
]
*
101
*
10
1
*
5
1
*
25
,
Extents
=
[
-
0.1525
,
0.1525
,
0.8475
,
1.1525
,
-
0.025
,
1.025
,
4.5
,
29.5
],
NumberOfBins
=
[
6
1
,
6
1
,
2
1
,
25
],
Names
=
[
'[H,0,0]'
,
'[0,K,0]'
,
'[0,0,L]'
,
'temperature'
],
Units
=
'A^-1,A^-1,A^-1,C'
)
NumberOfBins
=
[
10
1
,
10
1
,
5
1
,
25
],
Names
=
[
'[H,0,0]'
,
'[0,K,0]'
,
'[0,0,L]'
,
'temperature'
],
Units
=
'A^-1,A^-1,A^-1,C'
)
signal
=
np
.
empty
((
61
,
6
1
,
2
1
,
25
))
signal
=
np
.
empty
((
101
,
10
1
,
5
1
,
25
))
for
n
,
t
in
enumerate
(
range
(
5
,
30
)):
signal
[:,:,:,
n
]
=
mtd
[
'{}K'
.
format
(
t
)].
getSignalArray
()
...
...
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