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
4015bacf
Commit
4015bacf
authored
Oct 23, 2018
by
Whitfield, Ross
Browse files
Update integration/KCl.py
parent
067cb0b9
Changes
1
Show whitespace changes
Inline
Side-by-side
integration/KCl.py
View file @
4015bacf
...
...
@@ -13,9 +13,9 @@ IntegratePeaksUsingClusters(InputWorkspace='q', PeaksWorkspace='peaks', Threshol
q2
=
ConvertWANDSCDtoQ
(
InputWorkspace
=
'KCl'
,
NormalisationWorkspace
=
'Vana_26613'
,
KeepTemporaryWorkspaces
=
True
,
BinningDim0
=
'-8.01,8.01,801'
,
BinningDim1
=
'-1.21,0.41,81'
,
BinningDim2
=
'-8.01,8.01,801'
)
FindPeaksMD
(
InputWorkspace
=
'q2_data'
,
PeakDistanceThreshold
=
0.5
,
MaxPeaks
=
100
,
DensityThresholdFactor
=
1
8
00
,
CalculateGoniometerForCW
=
True
,
Wavelength
=
1.488
,
OutputWorkspace
=
'peaks2'
)
FindPeaksMD
(
InputWorkspace
=
'q2_data'
,
PeakDistanceThreshold
=
0.5
,
MaxPeaks
=
100
,
DensityThresholdFactor
=
1
3
00
,
CalculateGoniometerForCW
=
True
,
Wavelength
=
1.488
,
OutputWorkspace
=
'peaks2'
)
FindUBUsingLatticeParameters
(
PeaksWorkspace
=
'peaks2'
,
a
=
6.292
,
b
=
6.292
,
c
=
6.292
,
alpha
=
90
,
beta
=
90
,
gamma
=
90
)
FindUBUsingLatticeParameters
(
PeaksWorkspace
=
'peaks2'
,
a
=
6.29
5
2
,
b
=
6.29
5
2
,
c
=
6.29
5
2
,
alpha
=
90
,
beta
=
90
,
gamma
=
90
)
IndexPeaks
(
PeaksWorkspace
=
'peaks2'
)
IntegratePeaksUsingClusters
(
InputWorkspace
=
'q2'
,
PeaksWorkspace
=
'peaks2'
,
Threshold
=
60000
,
OutputWorkspace
=
'integrated2'
,
OutputWorkspaceMD
=
'labeled2'
)
...
...
@@ -26,7 +26,14 @@ IntegratePeaksUsingClusters(InputWorkspace='q2', PeaksWorkspace='peaks2', Thresh
# IntegratePeaksMDHKL
hkl
=
ConvertWANDSCDtoQ
(
InputWorkspace
=
'KCl'
,
NormalisationWorkspace
=
'Vana_26613'
,
UBWorkspace
=
'peaks'
,
Frame
=
'HKL'
,
BinningDim0
=
'-0.42,0.42,41'
,
BinningDim1
=
'-8.02,8.02,401'
,
BinningDim2
=
'-8.02,8.02,401'
)
hkl
=
ConvertWANDSCDtoQ
(
InputWorkspace
=
'KCl'
,
NormalisationWorkspace
=
'Vana_26613'
,
UBWorkspace
=
'peaks'
,
Frame
=
'HKL'
,
BinningDim0
=
'-1.22,0.42,41'
,
BinningDim1
=
'-8.02,8.02,401'
,
BinningDim2
=
'-8.02,8.02,401'
)
IntegratePeaksMDHKL
(
InputWorkspace
=
'hkl'
,
PeaksWorkspace
=
'peaks'
,
OutputWorkspace
=
'hkl_integrated'
,
DeltaHKL
=
0.5
,
GridPoints
=
201
,
NeighborPoints
=
10
)
IntegratePeaksMDHKL
(
InputWorkspace
=
'hkl'
,
PeaksWorkspace
=
'peaks'
,
OutputWorkspace
=
'hkl_integrated2'
,
DeltaHKL
=
0.5
,
GridPoints
=
201
,
NeighborPoints
=
2
)
IntegratePeaksMDHKL
(
InputWorkspace
=
'hkl'
,
PeaksWorkspace
=
'peaks'
,
OutputWorkspace
=
'hkl_integrated3'
,
DeltaHKL
=
0.5
,
GridPoints
=
201
,
NeighborPoints
=
5
)
IntegratePeaksMDHKL
(
InputWorkspace
=
'hkl'
,
PeaksWorkspace
=
'peaks'
,
OutputWorkspace
=
'hkl_integrated4'
,
DeltaHKL
=
0.5
,
GridPoints
=
201
,
NeighborPoints
=
1
)
IntegratePeaksMDHKL
(
InputWorkspace
=
'hkl'
,
PeaksWorkspace
=
'peaks'
,
OutputWorkspace
=
'hkl_integrated5'
,
DeltaHKL
=
0.5
,
GridPoints
=
201
,
NeighborPoints
=
20
)
hkl2
=
ConvertWANDSCDtoQ
(
InputWorkspace
=
'KCl'
,
NormalisationWorkspace
=
'Vana_26613'
,
UBWorkspace
=
'peaks2'
,
Frame
=
'HKL'
,
BinningDim0
=
'-0.81,0.81,81'
,
BinningDim1
=
'-8.01,8.01,801'
,
BinningDim2
=
'-8.01,8.01,801'
)
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