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

    r1603 r1612  
    2222    from matplotlib.transforms import blend_xy_sep_transform  as blended_transform_factory
    2323
     24from taskinit import *
     25
    2426if int(matplotlib.__version__.split(".")[1]) < 87:
    25     print "Warning: matplotlib version < 0.87. This might cause errors. Please upgrade."
     27    #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' )
    2629
    2730#class MyFormatter(OldScalarFormatter):
     
    449452                    print 'Written file %s' % (fname)
    450453            except IOError, msg:
    451                 print 'Failed to save %s: Error msg was\n\n%s' % (fname, err)
     454                #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' )
    452456                return
    453457        else:
    454             print "Invalid image type. Valid types are:"
    455             print "'ps', 'eps', 'png'"
     458            #print "Invalid image type. Valid types are:"
     459            #print "'ps', 'eps', 'png'"
     460            casalog.post( "Invalid image type. Valid types are:", 'WARN' )
     461            casalog.post( "'ps', 'eps', 'png'", 'WARN' )
    456462
    457463
Note: See TracChangeset for help on using the changeset viewer.