Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
InputWorkspace | Input | Workspace | Mandatory | Input workspace |
SwapPoint | Input | number | 1 | Swap point |
OutputWorkspace | Output | Workspace | Mandatory | Output workspace |
This algorithm is used mainly in tandem with the output of BayesQuasi when the data contains multiple peaks. Quasi Lines
Example - a basic example using SwapWidths.
# Load workspace to perform swap with
ws = Load(Filename='IN16B_125878_QLd_Result.nxs')
# Perform Swap (data crosses at bin 5)
result = SwapWidths(InputWorkspace=ws, SwapPoint=5)
# Print the result
print "The resulting workspace has %d bins and %d histograms." % (result.blocksize(), result.getNumberHistograms())
Output:
The resulting workspace has 16 bins and 2 histograms.
Categories: Algorithms | Workflow\MIDAS | Inelastic
Python: SwapWidths.py