Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.29 KB

FuryFitMultiple-v1.rst

File metadata and controls

43 lines (28 loc) · 1.29 KB

Description

Fits an *_iqt file generated by Fury using one of the specified functions. The functions available are either one or two exponentials (Intensity × exp[ − (x/τ)]), a stretched exponential (Intensity × exp[ − (x/τ)]β) or a combination of both an exponential and stretched exponential.

This routine was originally part of the MODES package.

Usage

Example - Running FuryFitMultiple on an reduced workspace.

#create a dummy workspace
function = "name=ExpDecay,Height=1,Lifetime=0.035"
ws = CreateSampleWorkspace("Histogram", Function="User Defined", UserDefinedFunction=function, XMin=0, XMax=0.5, BinWidth=0.01, XUnit="Time", NumBanks=1)

#load instrument defintion and parameters
LoadInstrument(ws, InstrumentName='IRIS')
param_file = config['instrumentDefinition.directory'] + 'IRIS_graphite_002_Parameters.xml'
LoadParameterFile(ws, param_file)

ws = CropWorkspace(ws, StartWorkspaceIndex=3, EndWorkspaceIndex=12)
ws = RenameWorkspace(ws, OutputWorkspace="irs10001_graphite002_iqt")

#run FuryFitMultiple
FuryFitMultiple(RunNumber='10001', InputType='Workspace', Instrument='irs', Analyser='graphite002')