Skip to content
Snippets Groups Projects
Commit 5ebb5471 authored by Federico Montesino Pouzols's avatar Federico Montesino Pouzols
Browse files

fix workspace obj name in doc test, re #10965

parent a27f41b3
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,7 @@ Usage ...@@ -58,7 +58,7 @@ Usage
.. testcode:: LoadFITS .. testcode:: LoadFITS
ws_name = 'FITSws' 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 # 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" % FITSws.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)
......
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