- Timestamp:
- 09/07/04 11:36:50 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/test.py
r76 r84 1 1 #import genera operating system related functions 2 2 import os 3 #import a tnf_sdmodule4 from a tnf_sdimport *3 #import asap module 4 from asap import * 5 5 # create a reader 6 6 r = sdreader() … … 15 15 r = None 16 16 # Test sdwriter. 17 print 'Writing ASAP table to disk as /tmp/test.tbl...' 18 scans.makepersistent('/tmp/test.tbl') 19 print "removing /tmp/test.tbl ..." 20 os.remove('/tmp/test_SDWriter.sdfits') 17 21 print 'Begin sdwriter tests...' 18 22 # Create an MS2 writer. … … 21 25 w.setformat() 22 26 # Write out the spectra. 23 w.write(scans, ' test_SDWriter.sdfits')27 w.write(scans, '/tmp/test_SDWriter.sdfits') 24 28 # clean up 25 29 print "removing test_SDWriter.sdfits ..." 26 os.remove(' test_SDWriter.sdfits')30 os.remove('/tmp/test_SDWriter.sdfits') 27 31 # print a short summary of the data 28 32 scans.summary()
Note:
See TracChangeset
for help on using the changeset viewer.