Revision: 7717
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7717&view=rev
Author: jswhit
Date: 2009-09-08 17:18:53 +0000 (Tue, 08 Sep 2009)
Log Message:
-----------
adjust netcdftime since fancy indexing doesn't work in pupynere.
Modified Paths:
--------------
trunk/toolkits/basemap/lib/mpl_toolkits/basemap/netcdftime.py
Modified: trunk/toolkits/basemap/lib/mpl_toolkits/basemap/netcdftime.py
===================================================================
--- trunk/toolkits/basemap/lib/mpl_toolkits/basemap/netcdftime.py
2009-09-08 16:48:12 UTC (rev 7716)
+++ trunk/toolkits/basemap/lib/mpl_toolkits/basemap/netcdftime.py
2009-09-08 17:18:53 UTC (rev 7717)
@@ -958,7 +958,11 @@
if (indices >= nctime.shape[0]).any():
return False
- t = nctime[indices]
+# t = nctime[indices]
+# fancy indexing not available, fall back on this.
+ t=[]
+ for ind in indices:
+ t.append(nctime[ind])
return numpy.all( num2date(t, nctime.units, calendar) == dates)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins