Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
InputFiles | Input | str list | Comma separated list of input files | |
LoadLogFiles | Input | boolean | True | Load log files when loading runs |
Instrument | Input | string | Mandatory | Instrument used during run. Allowed values: [‘IRIS’, ‘OSIRIS’] |
SpectraRange | Input | int list | 0,1 | Comma separated range of spectra number to use. |
SampleEnvironmentLogName | Input | string | sample | Name of the sample environment log entry |
SampleEnvironmentLogValue | Input | string | last_value | Value selection of the sample environment log entry. Allowed values: [‘last_value’, ‘average’] |
OutputWorkspace | Input | string | Output | Workspace group for the resulting workspaces. |
This algortithm is to speed up the workflow for Indirect Inelastic diffraction reduction. Uses ISISIndirectDiffractionReduction in diffspec mode with several parameters at fixed values. Also extracts the temperature from each run and creates a workspace of all runs with respect to temperature.
Example - Running IndirectDiffScan.
ISISIndirectDiffractionReduction(InputFiles='IRS21360.raw',
OutputWorkspace='DiffractionReductions',
Instrument='IRIS',
SpectraRange=[105,112])
ws = mtd['DiffractionReductions'].getItem(0)
print('Workspace name: %s' % ws.name())
print('Number of spectra: %d' % ws.getNumberHistograms())
print('Number of bins: %s' % ws.blocksize())
Output:
Workspace name: iris21360_diffspec_red
Number of spectra: 1
Number of bins: 1934
Categories: Algorithms | Workflow\Inelastic | Inelastic\Indirect | Workflow\MIDAS
Python: IndirectDiffScan.py (last modified: 2017-06-06)