Skip to content

Commit

Permalink
Refs #9584 Add example for FuryFitMultiple
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Jackson committed Jun 6, 2014
1 parent a649506 commit 2e0c252
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Code/Mantid/docs/source/algorithms/FuryFitMultiple-v1.rst
Expand Up @@ -17,4 +17,27 @@ an exponential and stretched exponential.

This routine was originally part of the MODES package.

Usage
-----

**Example - Running FuryFitMultiple on an reduced workspace.**

.. code-block:: python
#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')
.. categories::

0 comments on commit 2e0c252

Please sign in to comment.