Changeset 451 for trunk/python


Ignore:
Timestamp:
02/15/05 20:06:41 (20 years ago)
Author:
kil064
Message:

make default for stokes=False in function save
make format cas insensitive in function save

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r445 r451  
    7171                    sdtable.__init__(self,tbl)
    7272
    73     def save(self, name=None, format=None, stokes=True, overwrite=False):
     73    def save(self, name=None, format=None, stokes=False, overwrite=False):
    7474        """
    7575        Store the scantable on disk. This can be an asap (aips++) Table, SDFITS,
     
    8888            stokes:      Convert to Stokes parameters (only available
    8989                         currently with FITS and ASCII formats.
     90                         Default is False.
    9091            overwrite:   If the file should be overwritten if it exists.
    9192                         The default False is to return with warning
     
    106107                print "File %s already exists." % name
    107108                return
    108         if format == 'ASAP':
     109        format2 = format.upper()
     110        if format2 == 'ASAP':
    109111            self._save(name)
    110112        else:
    111113            from asap._asap import sdwriter as _sw
    112             w = _sw(format)
     114            w = _sw(format2)
    113115            w.write(self, name, stokes)
    114116        return
Note: See TracChangeset for help on using the changeset viewer.