SwapWidths v1

../_images/ImageNotFound.png

Enable screenshots using DOCS_SCREENSHOTS in CMake

Summary

Creates a calibration workspace in energy trnasfer for IN16B.

Properties

Name

Direction

Type

Default

Description

InputWorkspace

Input

Workspace

Mandatory

Input workspace

SwapPoint

Input

long

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

Source

Python: SwapWidths.py