Revision: 4164
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4164&view=rev
Author:   jswhit
Date:     2007-11-08 14:06:40 -0800 (Thu, 08 Nov 2007)

Log Message:
-----------
fix typo (byteswapped() --> byteswap())

Modified Paths:
--------------
    trunk/toolkits/basemap-testing/lib/matplotlib/toolkits/basemap/basemap.py

Modified: 
trunk/toolkits/basemap-testing/lib/matplotlib/toolkits/basemap/basemap.py
===================================================================
--- trunk/toolkits/basemap-testing/lib/matplotlib/toolkits/basemap/basemap.py   
2007-11-08 21:53:39 UTC (rev 4163)
+++ trunk/toolkits/basemap-testing/lib/matplotlib/toolkits/basemap/basemap.py   
2007-11-08 22:06:40 UTC (rev 4164)
@@ -792,7 +792,7 @@
                 # numpy array (first column is lons, second is lats).
                 polystring = bdatfile.read(bytecount)
                 if not npy.little_endian:
-                    b = 
npy.reshape(npy.fromstring(polystring,dtype=npy.float64).byteswapped(),(npts,2))
+                    b = 
npy.reshape(npy.fromstring(polystring,dtype=npy.float64).byteswap(),(npts,2))
                 else:
                     b = 
npy.reshape(npy.fromstring(polystring,dtype=npy.float64),(npts,2))
                 # if map boundary polygon is a valid one in lat/lon
@@ -853,8 +853,8 @@
                             #    pylab.show()
                             if poly.is_valid:
                                 poly = poly.intersection(boundarypolyll)
-                            else:
-                                print 'warning, invalid ',name,' 
geometry',poly.area
+                            #else:
+                            #    print 'warning, invalid ',name,' 
geometry',poly.area
                             # create iterable object with geometries
                             # that intersect map region.
                             if hasattr(poly,'geoms'): 
@@ -919,8 +919,8 @@
                         #try:
                         if poly.is_valid:
                             poly = boundarypolyxy.intersection(poly)
-                        else:
-                            print 'warning, invalid ',name,' 
geometry',poly.area
+                        #else:
+                        #    print 'warning, invalid ',name,' 
geometry',poly.area
                         #except:
                         #    continue
                         # create iterable object with geometries


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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to