Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
c740e70a
Commit
c740e70a
authored
10 years ago
by
Zhou, Wenduo
Browse files
Options
Downloads
Patches
Plain Diff
Fixed doc test. Refs #10182.
parent
935b4b8c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Mantid/docs/source/algorithms/SaveVulcanGSS-v1.rst
+14
-7
14 additions, 7 deletions
Code/Mantid/docs/source/algorithms/SaveVulcanGSS-v1.rst
with
14 additions
and
7 deletions
Code/Mantid/docs/source/algorithms/SaveVulcanGSS-v1.rst
+
14
−
7
View file @
c740e70a
...
@@ -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::
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment