Changeset 665


Ignore:
Timestamp:
08/18/05 10:54:35 (19 years ago)
Author:
mar637
Message:

casapmath.py

Location:
trunk/python
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/__init__.py

    r585 r665  
    233233
    234234__date__ = '$Date$'.split()[1]
    235 __version__  = '1.0'
     235__version__  = '1.1'
    236236
    237237def list_scans(t = scantable):
  • trunk/python/asaplot.py

    r652 r665  
    380380
    381381
    382     def save(self, fname=None):
     382    def save(self, fname=None, orientation='landscape'):
    383383        """
    384384        Save the plot to a file.
     
    401401        if fname[-3:].lower() in d:
    402402            try:
    403                 self.canvas.print_figure(fname)
     403                self.canvas.print_figure(fname,orientation=orientation)
    404404                print 'Written file %s' % (fname)
    405405            except IOError, msg:
  • trunk/python/asapmath.py

    r582 r665  
    2222        # all correlator cycles
    2323        scanav = average_time(scan, scanav=True)
    24 
    2524    """
    2625    scanAv = False
     
    3433        mask = kwargs.get('mask')
    3534    varlist = vars()
    36     lst = tuple(args)
     35    if isinstance(args[0],list):
     36        lst = tuple(args[0])
     37    elif isinstance(args[0],tuple):
     38        lst = args[0]
     39    else:
     40        lst = tuple(args)
     41       
    3742    del varlist["kwargs"]
    3843    varlist["args"] = "%d scantables" % len(lst)
Note: See TracChangeset for help on using the changeset viewer.