Changeset 84


Ignore:
Timestamp:
09/07/04 11:36:50 (20 years ago)
Author:
mar637
Message:

changes module name form "atnf_sd" to "asap"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/test.py

    r76 r84  
    11#import genera operating system related functions
    22import os
    3 #import atnf_sd module
    4 from atnf_sd import *
     3#import asap module
     4from asap import *
    55# create a reader
    66r = sdreader()
     
    1515r = None
    1616# Test sdwriter.
     17print 'Writing ASAP table to disk as /tmp/test.tbl...'
     18scans.makepersistent('/tmp/test.tbl')
     19print "removing /tmp/test.tbl ..."
     20os.remove('/tmp/test_SDWriter.sdfits')
    1721print 'Begin sdwriter tests...'
    1822# Create an MS2 writer.
     
    2125w.setformat()
    2226# Write out the spectra.
    23 w.write(scans, 'test_SDWriter.sdfits')
     27w.write(scans, '/tmp/test_SDWriter.sdfits')
    2428# clean up
    2529print "removing test_SDWriter.sdfits ..."
    26 os.remove('test_SDWriter.sdfits')
     30os.remove('/tmp/test_SDWriter.sdfits')
    2731# print a short summary of the data
    2832scans.summary()
Note: See TracChangeset for help on using the changeset viewer.