Ignore:
Timestamp:
08/16/05 15:25:32 (19 years ago)
Author:
mar637
Message:

fix to handle lists os scantables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Release-2-fixes/python/asapmath.py

    r582 r662  
    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.