Skip to content
Snippets Groups Projects
Commit 9e84d610 authored by Lynch, Vickie's avatar Lynch, Vickie
Browse files

Refs #9714 two more doc tests

parent b7960a06
No related branches found
No related tags found
No related merge requests found
......@@ -87,4 +87,25 @@ Performance Notes
- 32-core AMD Opteron 2.7 GHz computer: measured between 8 and 9
million events per second (400-1000 million event workspaces).
Usage
**Example - Convert re-binned MARI 2D workspace to 3D MD workspace for further analysis/merging with data at different temperatures :**
.. testcode:: ExConvertToDiffractionMDWorkspace
# Load Operation
events = CreateSampleWorkspace(OutputWorkspace='events', WorkspaceType='Event', Function='Multiple Peaks', Random=True)
# convert to MD workspace
md = ConvertToDiffractionMDWorkspace(InputWorkspace=events, OutputWorkspace='md', OneEventPerBin=False, LorentzCorrection=True, SplitThreshold=150,Version=1))
# A way to look at these results as a text:
print "Resulting MD workspace has {0} events and {1} dimensions".format(md.getNEvents(),md.getNumDims())
**Output:**
.. testoutput:: ExConvertToDiffractionMDWorkspace
Resulting MD workspace has 805 events and 3 dimensions
.. categories::
......@@ -86,5 +86,25 @@ Performance Notes
million events per second (100-200 million event workspace).
- 32-core AMD Opteron 2.7 GHz computer: measured between 8 and 9
million events per second (400-1000 million event workspaces).
Usage
**Example - Convert re-binned MARI 2D workspace to 3D MD workspace for further analysis/merging with data at different temperatures :**
.. testcode:: ExConvertToDiffractionMDWorkspace
# Load Operation
events = CreateSampleWorkspace(OutputWorkspace='events', WorkspaceType='Event', Function='Multiple Peaks', Random=True)
# convert to MD workspace
md = ConvertToDiffractionMDWorkspace(InputWorkspace=events, OutputWorkspace='md', OneEventPerBin=False, LorentzCorrection=True, SplitThreshold=150)
# A way to look at these results as a text:
print "Resulting MD workspace has {0} events and {1} dimensions".format(md.getNEvents(),md.getNumDims())
**Output:**
.. testoutput:: ExConvertToDiffractionMDWorkspace
Resulting MD workspace has 805 events and 3 dimensions
.. categories::
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment