\(\renewcommand\AA{\unicode{x212B}}\)

SwapWidths v1

../_images/SwapWidths-v1_dlg.png

SwapWidths dialog.

Summary

Creates a calibration workspace in energy trnasfer for IN16B.

Properties

Name Direction Type Default Description
InputWorkspace Input Workspace Mandatory Input workspace
SwapPoint Input number 1 Swap point
OutputWorkspace Output Workspace Mandatory Output workspace

Description

This algorithm is used mainly in tandem with the output of BayesQuasi when the data contains multiple peaks. Quasi Lines

Usage

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: AlgorithmIndex | Workflow\MIDAS | Inelastic