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
5ebb5471
Commit
5ebb5471
authored
10 years ago
by
Federico Montesino Pouzols
Browse files
Options
Downloads
Patches
Plain Diff
fix workspace obj name in doc test, re #10965
parent
a27f41b3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Mantid/docs/source/algorithms/LoadFITS-v1.rst
+2
-2
2 additions, 2 deletions
Code/Mantid/docs/source/algorithms/LoadFITS-v1.rst
with
2 additions
and
2 deletions
Code/Mantid/docs/source/algorithms/LoadFITS-v1.rst
+
2
−
2
View file @
5ebb5471
...
@@ -58,7 +58,7 @@ Usage
...
@@ -58,7 +58,7 @@ Usage
.. testcode:: LoadFITS
.. testcode:: LoadFITS
ws_name = 'FITSws'
ws_name = 'FITSws'
FITS
ws = LoadFITS(Filename='FITS_small_01.fits', OutputWorkspace=ws_name)
ws = LoadFITS(Filename='FITS_small_01.fits', OutputWorkspace=ws_name)
# A couple of standard FITS header entries
# A couple of standard FITS header entries
bpp_log = 'BITPIX'
bpp_log = 'BITPIX'
...
@@ -74,7 +74,7 @@ Usage
...
@@ -74,7 +74,7 @@ Usage
log1 = ws.getRun().getLogData(axis1_log)
log1 = ws.getRun().getLogData(axis1_log)
log2 = ws.getRun().getLogData(axis2_log)
log2 = ws.getRun().getLogData(axis2_log)
print "FITS image size: %d x %d pixels" % (log1, log2)
print "FITS image size: %d x %d pixels" % (log1, log2)
print "Number of spectra in the output workspace: %d" %
FITS
ws.getNumberHistograms()
print "Number of spectra in the output workspace: %d" % ws.getNumberHistograms()
except RuntimeError:
except RuntimeError:
print "Could not find the keywords '%s' and '%s' in this FITS file" % (axis1_log, axis2_log)
print "Could not find the keywords '%s' and '%s' in this FITS file" % (axis1_log, axis2_log)
...
...
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