Skip to content

Commit

Permalink
Refs #9568. Removed clean up sections
Browse files Browse the repository at this point in the history
Workspaces should be cleaned up automatically now
  • Loading branch information
arturbekasov committed Jun 6, 2014
1 parent ce51745 commit 92fc615
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 51 deletions.
10 changes: 0 additions & 10 deletions Code/Mantid/docs/source/algorithms/ConvertAxisByFormula-v1.rst
Expand Up @@ -65,11 +65,6 @@ Usage
print "New X units:", output.getAxis(0).getUnit().symbol()
print "New X title:", output.getAxis(0).getUnit().caption()

.. testcleanup:: ExSquareXAxis

DeleteWorkspace(input)
DeleteWorkspace(output)

Output:

.. testoutput:: ExSquareXAxis
Expand Down Expand Up @@ -108,11 +103,6 @@ Output:
print "New Y units:", output.getAxis(1).getUnit().symbol()
print "New Y title:", output.getAxis(1).getUnit().caption()

.. testcleanup:: ExDoubleYAxis

DeleteWorkspace(input)
DeleteWorkspace(output)

Output:

.. testoutput:: ExDoubleYAxis
Expand Down
13 changes: 0 additions & 13 deletions Code/Mantid/docs/source/algorithms/MuonGroupDetectors-v1.rst
Expand Up @@ -50,12 +50,6 @@ Usage
print 'Detectors grouped in spectra 1:', list(grouped.getSpectrum(1).getDetectorIDs())
print 'Detectors grouped in spectra 2:', list(grouped.getSpectrum(2).getDetectorIDs())

.. testcleanup:: ExGroupMUSR

DeleteWorkspace('ws')
DeleteWorkspace('grouping')
DeleteWorkspace('grouped')

Output:

.. testoutput:: ExGroupMUSR
Expand Down Expand Up @@ -83,13 +77,6 @@ Output:
print 'No. of grouped spectra in first period:', grouped.getItem(0).getNumberHistograms()
print 'No. of grouped spectra in second period:', grouped.getItem(1).getNumberHistograms()

.. testcleanup:: ExGroupingFromNexus

DeleteWorkspace('ws')
DeleteWorkspace('__unused_ws')
DeleteWorkspace('grouping')
DeleteWorkspace('grouped')

Output:

.. testoutput:: ExGroupingFromNexus
Expand Down
16 changes: 0 additions & 16 deletions Code/Mantid/docs/source/algorithms/PlotAsymmetryByLogValue-v1.rst
Expand Up @@ -53,10 +53,6 @@ Usage
print "Y values (asymmetry):", ws.readY(0)
print "X values (sample magn. field):", ws.readX(0)

.. testcleanup:: ExSimple

DeleteWorkspace(ws)

Output:

.. testoutput:: ExSimple
Expand All @@ -82,10 +78,6 @@ Output:
print "Y values (sum):", ws.readY(3)
print "X values (sample magn. field):", ws.readX(0)

.. testcleanup:: ExRedGreen

DeleteWorkspace(ws)

Output:

.. testoutput:: ExRedGreen
Expand Down Expand Up @@ -119,10 +111,6 @@ Output:
print "Y values (asymmetry):", ws.readY(0)
print "X values (sample magn. field):", ws.readX(0)

.. testcleanup:: ExCustomGrouping

DeleteWorkspace(ws)

Output:

.. testoutput:: ExCustomGrouping
Expand All @@ -146,10 +134,6 @@ Output:
print "Y values (asymmetry):", ws.readY(0)
print "X values (sample magn. field):", ws.readX(0)

.. testcleanup:: ExDeadTimeCorrection

DeleteWorkspace(ws)

Output:

.. testoutput:: ExDeadTimeCorrection
Expand Down
12 changes: 0 additions & 12 deletions Code/Mantid/docs/source/algorithms/RenameWorkspaces-v1.rst
Expand Up @@ -49,12 +49,6 @@ Usage

print 'Workspaces in the ADS _after_ renaming:', mtd.getObjectNames()

.. testcleanup:: ExNewNames

DeleteWorkspace('new_ws1')
DeleteWorkspace('new_ws2')
DeleteWorkspace('new_ws3')

Output:

.. testoutput:: ExNewNames
Expand All @@ -81,12 +75,6 @@ Output:

print 'Workspaces in the ADS _after_ renaming:', mtd.getObjectNames()

.. testcleanup:: ExPrefixAndSuffix

DeleteWorkspace('new_ws1_name')
DeleteWorkspace('new_ws2_name')
DeleteWorkspace('new_ws3_name')

Output:

.. testoutput:: ExPrefixAndSuffix
Expand Down

0 comments on commit 92fc615

Please sign in to comment.