Skip to content

Commit

Permalink
Temp removal of failing usage example
Browse files Browse the repository at this point in the history
Refs #7860
  • Loading branch information
DanNixon committed Aug 20, 2014
1 parent e96cf67 commit 2fd5ce0
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions Code/Mantid/docs/source/algorithms/Symmetrise-v1.rst
Expand Up @@ -14,26 +14,26 @@ moduli of xmin & xmax are different. Typically xmax is > mod(xmin). A
negative value of x is chosen (Xcut) so that the curve for mod(Xcut) to
xmax is reflected and inserted for x less than the Xcut.

Usage
-----
.. Usage
.. -----
**Example - Running Symmetrise on an asymmetric workspace.**
.. **Example - Running Symmetrise on an asymmetric workspace.**
.. testcode:: ExSymmetriseSimple
.. .. testcode:: ExSymmetriseSimple
import numpy as np
.. import numpy as np
#create an asymmetric line shape
def rayleigh(x, sigma):
return (x / sigma**2) * np.exp( -x**2 / (2*sigma**2))
.. #create an asymmetric line shape
.. def rayleigh(x, sigma):
.. return (x / sigma**2) * np.exp( -x**2 / (2*sigma**2))
dataX = np.arange(0, 10, 0.01)
dataY = rayleigh(dataX, 1)
.. dataX = np.arange(0, 10, 0.01)
.. dataY = rayleigh(dataX, 1)
ws = CreateWorkspace(dataX, dataY)
ws = ScaleX(ws, -1, "Add") #centre the peak over 0
.. ws = CreateWorkspace(dataX, dataY)
.. ws = ScaleX(ws, -1, "Add") #centre the peak over 0
ws = RenameWorkspace(ws, OutputWorkspace="iris00001_graphite002_red")
Symmetrise('00001', '-0.001', InputType='Workspace')
.. ws = RenameWorkspace(ws, OutputWorkspace="iris00001_graphite002_red")
.. Symmetrise('00001', '-0.001', InputType='Workspace')
.. categories::

0 comments on commit 2fd5ce0

Please sign in to comment.