Skip to content

Commit

Permalink
fix workspace obj name in doc test, re #10965
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeMPouzols committed Mar 26, 2015
1 parent a27f41b commit 5ebb547
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/docs/source/algorithms/LoadFITS-v1.rst
Expand Up @@ -58,7 +58,7 @@ Usage
.. testcode:: LoadFITS

ws_name = 'FITSws'
FITSws = 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
bpp_log = 'BITPIX'
Expand All @@ -74,7 +74,7 @@ Usage
log1 = ws.getRun().getLogData(axis1_log)
log2 = ws.getRun().getLogData(axis2_log)
print "FITS image size: %d x %d pixels" % (log1, log2)
print "Number of spectra in the output workspace: %d" % FITSws.getNumberHistograms()
print "Number of spectra in the output workspace: %d" % ws.getNumberHistograms()
except RuntimeError:
print "Could not find the keywords '%s' and '%s' in this FITS file" % (axis1_log, axis2_log)

Expand Down

0 comments on commit 5ebb547

Please sign in to comment.