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

    r1612 r1614  
    2222    from matplotlib.transforms import blend_xy_sep_transform  as blended_transform_factory
    2323
    24 from taskinit import *
     24from asap import asaplog
    2525
    2626if int(matplotlib.__version__.split(".")[1]) < 87:
    2727    #print "Warning: matplotlib version < 0.87. This might cause errors. Please upgrade."
    28     casalog.post( "matplotlib version < 0.87. This might cause errors. Please upgrade.", 'WARN' )
     28    asaplog.push( "matplotlib version < 0.87. This might cause errors. Please upgrade." )
     29    print_log( 'WARN' )
    2930
    3031#class MyFormatter(OldScalarFormatter):
     
    453454            except IOError, msg:
    454455                #print 'Failed to save %s: Error msg was\n\n%s' % (fname, err)
    455                 casalog.post( 'Failed to save %s: Error msg was\n\n%s' % (fname, err), 'WARN' )
     456                print_log()
     457                asaplog.push('Failed to save %s: Error msg was\n\n%s' % (fname, msg))
     458                print_log( 'ERROR' )
    456459                return
    457460        else:
    458461            #print "Invalid image type. Valid types are:"
    459462            #print "'ps', 'eps', 'png'"
    460             casalog.post( "Invalid image type. Valid types are:", 'WARN' )
    461             casalog.post( "'ps', 'eps', 'png'", 'WARN' )
     463            asaplog.push( "Invalid image type. Valid types are:" )
     464            asaplog.push( "'ps', 'eps', 'png'" )
     465            print_log('WARN')
    462466
    463467
Note: See TracChangeset for help on using the changeset viewer.