Ignore:
Timestamp:
08/05/09 17:48:43 (15 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-729, CAS-1147

Ready to Release: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes

Module(s): Module Names change impacts.

Description: Describe your changes here...

I have changed that almost all log messages are output to casapy.log,
not to the terminal window. After this change, asap becomes to depend on casapy
and is not running in standalone, because asap have to import taskinit module
to access casalogger.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/python/asapmath.py

    r1446 r1612  
    33from asap import print_log
    44from asap import selector
     5from taskinit import *
    56
    67def average_time(*args, **kwargs):
     
    6667            msg = "Please give a list of scantables"
    6768            if rcParams['verbose']:
    68                 print msg
     69                #print msg
     70                casalog.post( msg, 'WARN' )
    6971                return
    7072            else:
     
    184186        msg = "The input data appear to contain no position-switch mode data."
    185187        if rcParams['verbose']:
    186             print msg
     188            #print msg
     189            casalog.post( msg, 'WARN' )
    187190            return
    188191        else:
     
    192195        msg = "No data was found with given scan numbers!"
    193196        if rcParams['verbose']:
    194             print msg
     197            #print msg
     198            casalog.post( msg, 'WARN' )
    195199            return
    196200        else:
     
    201205        msg = "mismatch in numbers of CAL on/off scans. Cannot calibrate. Check the scan numbers."
    202206        if rcParams['verbose']:
    203             print msg
     207            #print msg
     208            casalog.post( msg, 'WARN' )
    204209            return
    205210        else:
     
    211216        msg = "mismatch in numbers of on/off scans. Cannot calibrate. Check the scan numbers."
    212217        if rcParams['verbose']:
    213             print msg
     218            #print msg
     219            casalog.post( msg, 'WARN' )
    214220            return
    215221        else:
     
    221227            msg = "Need to supply a valid tau to use the supplied Tsys"
    222228            if rcParams['verbose']:
    223                 print msg
     229                #print msg
     230                casalog.post( msg, 'WARN' )
    224231                return
    225232            else:
     
    267274        msg = "The input data appear to contain no Nod observing mode data."
    268275        if rcParams['verbose']:
    269             print msg
     276            #print msg
     277            casalog.post( msg, 'WARN' )
    270278            return
    271279        else:
     
    304312            msg = "Need to supply a valid tau to use the supplied Tsys"
    305313            if rcParams['verbose']:
    306                 print msg
     314                #print msg
     315                casalog.post( msg, 'WARN' )
    307316                return
    308317            else:
     
    369378                       as well as the data
    370379    """
    371     print "simple_math is deprecated use +=/* instead."
     380    #print "simple_math is deprecated use +=/* instead."
     381    casalog.post( "simple_math is deprecated use +=/* instead.", 'WARN' )
    372382
    373383def merge(*args):
     
    398408            msg = "Please give a list of scantables"
    399409            if rcParams['verbose']:
    400                 print msg
     410                #print msg
     411                casalog.post( msg, 'WARN' )
    401412                return
    402413            else:
Note: See TracChangeset for help on using the changeset viewer.