Skip to content
Snippets Groups Projects
Commit c740e70a authored by Zhou, Wenduo's avatar Zhou, Wenduo
Browse files

Fixed doc test. Refs #10182.

parent 935b4b8c
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,12 @@ V-drive uses a different bin other than Mantid does. ...@@ -16,6 +16,12 @@ V-drive uses a different bin other than Mantid does.
Besides, IDL's rebin algorithm is different from Mantid's. Besides, IDL's rebin algorithm is different from Mantid's.
Backup
------
Usage Usage
----- -----
...@@ -26,6 +32,7 @@ Usage ...@@ -26,6 +32,7 @@ Usage
import os import os
dataws = Load(Filename="focussed.nxs") dataws = Load(Filename="focussed.nxs")
dataws.setTitle("Test")
dataws = ConvertUnits(InputWorkspace=dataws, Target="TOF", EMode="Elastic", AlignBins=False) dataws = ConvertUnits(InputWorkspace=dataws, Target="TOF", EMode="Elastic", AlignBins=False)
file_name = "testvulcan.gda" file_name = "testvulcan.gda"
...@@ -36,12 +43,12 @@ Usage ...@@ -36,12 +43,12 @@ Usage
gfile = open(path, "r") gfile = open(path, "r")
lines = gfile.readlines() lines = gfile.readlines()
gfile.close() gfile.close()
print "[GSAS File Start]" print "[GSAS File Start]"
for i in xrange(11): for i in xrange(11):
print lines[i], print lines[i].rstrip()
print "... ..." print "... ..."
.. testcleanup:: ExSaveVulcanGSAS .. testcleanup:: ExSaveVulcanGSAS
...@@ -57,7 +64,7 @@ Output: ...@@ -57,7 +64,7 @@ Output:
.. testoutput:: ExSaveVulcanGSAS .. testoutput:: ExSaveVulcanGSAS
[GSAS File Start] [GSAS File Start]
Test
Instrument parameter file: mock.prm Instrument parameter file: mock.prm
#IPTS: 1234 #IPTS: 1234
#binned by: Mantid #binned by: Mantid
...@@ -65,9 +72,9 @@ Output: ...@@ -65,9 +72,9 @@ Output:
#GSAS IPARM file: mock.prm #GSAS IPARM file: mock.prm
#Pulsestart: 0 #Pulsestart: 0
#Pulsestop: 0 #Pulsestop: 0
BANK 2 2487 2487 SLOG 5000.0 59998.0 0.0010005 0 FXYE BANK 2 2487 2487 SLOG 5000.0 59998.0 0.0010005 0 FXYE
5000.000000000 531.580944087 23.056039211 5000.000000000 531.580944087 23.056039211
5005.000000000 529.996089552 23.021643937 5005.000000000 529.996089552 23.021643937
... ... ... ...
.. categories:: .. 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