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
9f68a284
Commit
9f68a284
authored
Aug 17, 2018
by
Whitfield, Ross
Browse files
Update Pr2NiO4_new.py
parent
f7912ead
Changes
1
Hide whitespace changes
Inline
Side-by-side
Pr2NiO4_new.py
View file @
9f68a284
import
numpy
as
np
LoadWANDSCD
(
IPTS
=
7776
,
RunNumbers
=
'4756-6557'
,
Grouping
=
'4x4'
,
OutputWorkspace
=
'data'
)
ConvertWANDSCDtoQ
(
InputWorkspace
=
'data'
,
NormaliseBy
=
'None'
,
KeepTemporaryWorkspaces
=
True
,
OutputWorkspace
=
'q'
,
BinningDim0
=
'-8.01,8.01,801'
,
BinningDim1
=
'-0.81,0.81,81'
,
BinningDim2
=
'-8.01,8.01,801'
)
FindPeaksMD
(
InputWorkspace
=
'q_data'
,
PeakDistanceThreshold
=
1
,
MaxPeaks
=
100
,
DensityThresholdFactor
=
500
,
CalculateGoniometerForCW
=
True
,
Wavelength
=
1.488
,
OutputWorkspace
=
'peaks'
)
tt0
=
np
.
array
(
data
.
getExperimentInfo
(
0
).
run
().
getLogData
(
'twotheta'
).
value
)
az0
=
np
.
array
(
data
.
getExperimentInfo
(
0
).
run
().
getLogData
(
'azimuthal'
).
value
)
FindUBUsingLatticeParameters
(
'peaks'
,
5.414
,
5.414
,
12.457
,
90
,
90
,
90
)
ws
=
LoadEventNexus
(
Filename
=
'/HFIR/HB2C/IPTS-7776/nexus/HB2C_4756.nxs.h5'
,
MetaDataOnly
=
True
)
AddSampleLog
(
ws
,
LogName
=
'HB2C:Mot:detz.RBV'
,
LogText
=
'3.
4
'
,
LogType
=
'Number Series'
)
AddSampleLog
(
ws
,
LogName
=
'HB2C:Mot:detz.RBV'
,
LogText
=
'3.
85
'
,
LogType
=
'Number Series'
)
LoadInstrument
(
ws
,
InstrumentName
=
'WAND'
,
RewriteSpectraMap
=
'True'
)
grouping
=
4
...
...
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