Commit 1cbde8f3 authored by Whitfield, Ross's avatar Whitfield, Ross
Browse files

Update Al2O3.py

parent 646356cb
......@@ -18,22 +18,17 @@ PredictPeaks(InputWorkspace=data,
CalculateGoniometerForCW=True,
Wavelength=1.488,
MinAngle=-90,MaxAngle=90,
CalculateStructureFactors=True,
OutputWorkspace='predict')
IntegratePeaksMD(InputWorkspace=mde,
PeaksWorkspace='predict',
PeakRadius=0.5,
OutputWorkspace='integrated')
SaveReflections('integrated', Filename='/SNS/users/rwp/wand/Al2O3_integrated_peaks.hkl')
IntegratePeaksMD(InputWorkspace=mde,
PeaksWorkspace='predict',
PeakRadius=0.5,
BackgroundOuterRadius=0.75,
OutputWorkspace='integrated_bkg')
peaks = mtd['integrated']
for p in range(peaks.getNumberPeaks()):
peak = peaks.getPeak(p)
if peak.getL() == 0:
print("HKL = {:>12} int = {:>8}".format(str(peak.getHKL()),peak.getIntensity()))
SaveReflections('integrated_bkg', Filename='/SNS/users/rwp/wand/Al2O3_integrated_peaks_bkg_subtract.hkl')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment