Skip to content

Commit

Permalink
re #9612 replace non ascii characters
Browse files Browse the repository at this point in the history
  • Loading branch information
NickDraper committed Jun 19, 2014
1 parent b97e3a1 commit 19ed305
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Code/Mantid/docs/source/algorithms/FilterByLogValue-v1.rst
Expand Up @@ -72,7 +72,7 @@ rejected. For example, this call will filter out veto pulses:

.. testcode:: VetoPulseTime

ws = FilterByLogValue(ws, LogName="veto_pulse_time", PulseFilter="1")
ws = FilterByLogValue(ws, LogName="veto_pulse_time", PulseFilter="1")

Comparing with other event filtering algorithms
###############################################
Expand All @@ -86,7 +86,7 @@ Usage

**Example - Filtering by a simple time series Log**

.. testcode:: Filter
.. testcode:: FilterByLogValue

ws = CreateSampleWorkspace("Event",BankPixelWidth=1)

Expand All @@ -97,12 +97,16 @@ Usage
AddTimeSeriesLog(ws, Name="proton_charge", Time="2010-01-01T00:40:00", Value=15)
AddTimeSeriesLog(ws, Name="proton_charge", Time="2010-01-01T00:50:00", Value=100)

print "The unfiltered workspace %s has %i events and a peak value of %.2f" % (ws, ws.getNumberEvents(),ws.readY(0)[50])

wsOut = FilterByLogValue(ws,"proton_charge",MinimumValue=75, MaximumValue=150)

print "The filtered workspace %s has %i events and a peak value of %.2f" % (wsOut, wsOut.getNumberEvents(),wsOut.readY(0)[50])


Output:

.. testoutput:: Filter
.. testoutput:: FilterByLogValue

The unfiltered workspace ws has 8000 events and a peak value of 1030.00
The filtered workspace wsOut has 4058 events and a peak value of 502.00
Expand Down

0 comments on commit 19ed305

Please sign in to comment.