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/asapplotter.py

    r1562 r1612  
    11from asap import rcParams, print_log, selector
     2from taskinit import *
    23import matplotlib.axes
    34import re
     
    7475            msg = "Input is not a scantable"
    7576            if rcParams['verbose']:
    76                 print msg
     77                #print msg
     78                casalog.post( msg, 'WARN' )
    7779                return
    7880            raise TypeError(msg)
     
    169171               not self.set_stacking(stacking):
    170172            if rcParams['verbose']:
    171                 print msg
     173                #print msg
     174                casalog.post( msg, 'WARN' )
    172175                return
    173176            else:
     
    522525            msg = "Can only set mask after a first call to plot()"
    523526            if rcParams['verbose']:
    524                 print msg
     527                #print msg
     528                casalog.post( msg, 'WARN' )
    525529                return
    526530            else:
     
    888892            msg = "Input is not a scantable"
    889893            if rcParams['verbose']:
    890                 print msg
     894                #print msg
     895                casalog.post( msg, 'WARN' )
    891896                return
    892897            raise TypeError(msg)
Note: See TracChangeset for help on using the changeset viewer.