Skip to content

Commit

Permalink
Tidy up SaveParametersFile python usage example.
Browse files Browse the repository at this point in the history
Refs #10023
  • Loading branch information
Harry Jeffery committed Jul 30, 2014
1 parent e905a7f commit a36c795
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Code/Mantid/docs/source/algorithms/SaveParameterFile-v1.rst
Expand Up @@ -25,15 +25,16 @@ Usage

.. testcode:: ExParametersSimple

Load(Filename="MAR11001.raw", OutputWorkspace="MAR11001", LoadMonitors="Separate")
SaveParameterFile(Workspace="MAR11001", Filename="/tmp/params.xml", LocationParameters=False)
ws = Load(Filename = "MAR11001.raw")
SaveParameterFile(Workspace = ws, Filename = "/tmp/params.xml", LocationParameters = False)

pfile = open("/tmp/params.xml", "r")
lines = pfile.readlines()
pfile.close()

for line in lines[0:6]:
print(line.strip())

print("etc...")

.. testcleanup:: ExParametersSimple
Expand Down

0 comments on commit a36c795

Please sign in to comment.