Ignore:
Timestamp:
08/06/09 15:48:39 (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: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

  1. Added level parameter to print_log()
  2. Replaced casalog.post() to asaplog.push() + print_log().


File:
1 edited

Legend:

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

    r1612 r1614  
    11from asap import rcParams, print_log, selector
    2 from taskinit import *
     2from asap import asaplog
    33import matplotlib.axes
    44import re
     
    7676            if rcParams['verbose']:
    7777                #print msg
    78                 casalog.post( msg, 'WARN' )
     78                asaplog.push( msg )
     79                print_log( 'ERROR' )
    7980                return
    8081            raise TypeError(msg)
     
    172173            if rcParams['verbose']:
    173174                #print msg
    174                 casalog.post( msg, 'WARN' )
     175                asaplog.push( msg )
     176                print_log( 'ERROR' )
    175177                return
    176178            else:
     
    526528            if rcParams['verbose']:
    527529                #print msg
    528                 casalog.post( msg, 'WARN' )
     530                asaplog.push( msg )
     531                print_log( 'ERROR' )
    529532                return
    530533            else:
     
    617620                  "Selecting first %d selections..." % (maxn, maxn)
    618621            asaplog.push(msg)
    619             print_log()
     622            print_log('WARN')
    620623            n = min(n,maxpanel)
    621624            nstack = min(nstack,maxstack)
     
    893896            if rcParams['verbose']:
    894897                #print msg
    895                 casalog.post( msg, 'WARN' )
     898                asaplog.push( msg )
     899                print_log( 'ERROR' )
    896900                return
    897901            raise TypeError(msg)
Note: See TracChangeset for help on using the changeset viewer.