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
350282bd
Commit
350282bd
authored
Feb 12, 2020
by
Whitfield, Ross
Browse files
Update Al2O3_integration_test_MDE.py
parent
dc59edca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Al2O3_integration_test_MDE.py
View file @
350282bd
...
...
@@ -83,3 +83,12 @@ IntegratePeaksMD(InputWorkspace=mde_van,
PeakRadius
=
0.5
,
BackgroundOuterRadius
=
0.75
,
OutputWorkspace
=
'integrated_bkg_van'
)
peaks
=
mtd
[
'integrated_van'
]
for
p
in
range
(
peaks
.
getNumberPeaks
()):
peak
=
peaks
.
getPeak
(
p
)
if
peak
.
getL
()
!=
0
:
continue
lorentz
=
np
.
sin
(
2
*
np
.
arcsin
(
1.488
/
(
2
*
peak
.
getDSpacing
())))
print
(
"HKL = {:>12} int = {:>8} {:5.1f}"
.
format
(
str
(
peak
.
getHKL
()),
peak
.
getIntensity
(),
peak
.
getIntensity
()
*
lorentz
))
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