Changeset 415 for trunk/python


Ignore:
Timestamp:
02/11/05 17:51:33 (20 years ago)
Author:
mar637
Message:

Made note about reader limitation on rpfits.
fixed up summary (again)

Location:
trunk/python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapreader.py

    r411 r415  
    1717        print scans    # summarises the contents
    1818        del r          # destroys the reader
     19
     20    IMPORTANT: Due to limitations in the rpfits library, only one reader
     21               can be created at a time.
     22               r = reader('XYZ.rpf')
     23               r2 = reader('ABC.rpf')
     24               is NOT possible. This is a limitation affecting
     25               rpfits ONLY.
    1926    """
    2027
     
    7986        tbl = scantable(sdreader._getdata(self))
    8087        sdreader._reset(self)
    81         print tbl.summary(name=name)
     88        tbl.summary(name)
    8289        return
    8390##     def reset(self):
  • trunk/python/scantable.py

    r413 r415  
    167167            if filename is "":
    168168                filename = 'scantable_summary.txt'
    169             from os.path import expandvars, isfile
     169            from os.path import expandvars, isdir
    170170            filename = expandvars(filename)
    171             if isfile(filename):
     171            if not isdir(filename):
    172172                data = open(filename, 'w')
    173173                data.write(info)
Note: See TracChangeset for help on using the changeset viewer.