Ignore:
Timestamp:
08/03/10 11:41:13 (14 years ago)
Author:
Malte Marquarding
Message:

Tidy up of imports (now imported from asap.). Also fixed some whitespace/tab issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapmath.py

    r1819 r1826  
    11from asap.scantable import scantable
    2 from asap import rcParams
    3 from asap import print_log, print_log_dec
    4 from asap import selector
    5 from asap import asaplog
     2from asap.paramaters import rcParams
     3from asap.logging import asaplog, print_log, print_log_dec
     4from asap.selector import selector
    65from asap import asaplotgui
    76
     
    937936    """
    938937    Calibrate data.
    939    
     938
    940939    Parameters:
    941940        scantab:       scantable
    942941        scannos:       list of scan number
    943942        calmode:       calibration mode
    944         verify:        verify calibration     
     943        verify:        verify calibration
    945944    """
    946945    antname = scantab.get_antennaname()
     
    979978        scal = scantab.copy()
    980979
    981     return scal 
     980    return scal
    982981
    983982def apexcal( scantab, scannos=[], calmode='none', verify=False ):
     
    990989        calmode:       calibration mode
    991990
    992         verify:        verify calibration     
     991        verify:        verify calibration
    993992    """
    994993    from asap._asap import stmath
     
    10081007        calmode:       calibration mode
    10091008
    1010         verify:        verify calibration     
     1009        verify:        verify calibration
    10111010    """
    10121011    from asap._asap import stmath
     
    10201019    Split Measurement set by antenna name, save data as a scantables,
    10211020    and return a list of filename.
    1022     Notice this method can only be available from CASA. 
     1021    Notice this method can only be available from CASA.
    10231022    Prameter
    1024        filename:    the name of Measurement set to be read. 
     1023       filename:    the name of Measurement set to be read.
    10251024       outprefix:   the prefix of output scantable name.
    10261025                    the names of output scantable will be
     
    10301029                    The default False is to return with warning
    10311030                    without writing the output. USE WITH CARE.
    1032                    
     1031
    10331032    """
    10341033    # Import the table toolkit from CASA
     
    10711070        if not os.path.isdir(filename) \
    10721071               or not os.path.exists(filename+'/ANTENNA') \
    1073                or not os.path.exists(filename+'/table.f1'): 
     1072               or not os.path.exists(filename+'/table.f1'):
    10741073            s = "File '%s' is not a Measurement set." % (filename)
    10751074            if rcParams['verbose']:
     
    11191118    value:   float list operand
    11201119    mode:    operation mode (ADD, SUB, MUL, DIV)
    1121     tsys:    if True, operate tsys as well 
     1120    tsys:    if True, operate tsys as well
    11221121    """
    11231122    nrow = scan.nrow()
     
    11341133        from asap._asap import stmath
    11351134        stm = stmath()
    1136         # insitu must be True 
     1135        # insitu must be True
    11371136        stm._setinsitu( True )
    11381137        s = scan.copy()
     
    11501149        del stm
    11511150    return s
    1152 
    1153            
    1154            
Note: See TracChangeset for help on using the changeset viewer.