Revision: 5913
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5913&view=rev
Author:   jswhit
Date:     2008-07-28 16:58:16 +0000 (Mon, 28 Jul 2008)

Log Message:
-----------
make sure griddata issues verbose report only the first time it is called.

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/mlab.py

Modified: trunk/matplotlib/lib/matplotlib/mlab.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/mlab.py     2008-07-28 16:42:10 UTC (rev 
5912)
+++ trunk/matplotlib/lib/matplotlib/mlab.py     2008-07-28 16:58:16 UTC (rev 
5913)
@@ -2603,10 +2603,12 @@
         import matplotlib.delaunay as delaunay
         from matplotlib.delaunay import  __version__
         _use_natgrid = False
-    if _use_natgrid:
-        verbose.report('using natgrid version %s' % __version__)
-    else:
-        verbose.report('using delaunay version %s' % __version__)
+    if not griddata._reported:
+        if _use_natgrid:
+            verbose.report('using natgrid version %s' % __version__)
+        else:
+            verbose.report('using delaunay version %s' % __version__)
+        griddata._reported = True
     if xi.ndim != yi.ndim:
         raise TypeError("inputs xi and yi must have same number of dimensions 
(1 or 2)")
     if xi.ndim != 1 and xi.ndim != 2:
@@ -2645,3 +2647,4 @@
     if np.any(np.isnan(zo)):
         zo = np.ma.masked_where(np.isnan(zo),zo)
     return zo
+griddata._reported = False


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to