| 1 | ################################################################################ |
|---|
| 2 | # |
|---|
| 3 | # Migrated from system test : Calibrate Rectangular Detector |
|---|
| 4 | # |
|---|
| 5 | ################################################################################ |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | def runTest(): |
|---|
| 9 | # determine where to save |
|---|
| 10 | import os |
|---|
| 11 | savedir = os.path.abspath(os.path.curdir) |
|---|
| 12 | |
|---|
| 13 | # run the actual code |
|---|
| 14 | CalibrateRectangularDetectors( |
|---|
| 15 | Instrument = "PG3", |
|---|
| 16 | RunNumber = '13428', |
|---|
| 17 | Extension = '_event.nxs', |
|---|
| 18 | MaxOffset = 0.05, |
|---|
| 19 | PeakPositions = "0.5640, 0.6029,.6305,.6864,.7280,.8182,.8916,1.0754,1.2610,2.0592", |
|---|
| 20 | PeakWindowMax = 0.1, |
|---|
| 21 | PeakFunction = "Gaussian", |
|---|
| 22 | BackgroundType = "Flat", |
|---|
| 23 | Binning = '0.5, -0.0004, 2.5', |
|---|
| 24 | GroupDetectorsBy= "Group", |
|---|
| 25 | FilterBadPulses = True, |
|---|
| 26 | SaveAs = 'calibration', |
|---|
| 27 | OutputDirectory = savedir, |
|---|
| 28 | DiffractionFocusWorkspace = False, |
|---|
| 29 | CrossCorrelation = False |
|---|
| 30 | ) |
|---|
| 31 | |
|---|
| 32 | return |
|---|
| 33 | |
|---|
| 34 | runTest() |
|---|
| 35 | |
|---|