|
From: <sa...@us...> - 2008-07-24 21:56:09
|
Revision: 5851
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5851&view=rev
Author: sameerd
Date: 2008-07-24 21:56:08 +0000 (Thu, 24 Jul 2008)
Log Message:
-----------
Fixing edge cases in rec_join
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/mlab.py
Modified: trunk/matplotlib/lib/matplotlib/mlab.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/mlab.py 2008-07-24 21:56:06 UTC (rev 5850)
+++ trunk/matplotlib/lib/matplotlib/mlab.py 2008-07-24 21:56:08 UTC (rev 5851)
@@ -2032,12 +2032,13 @@
newrec[k] = v
for field in r1.dtype.names:
- newrec[field][:common_len] = r1[field][r1ind]
+ if common_len:
+ newrec[field][:common_len] = r1[field][r1ind]
if (jointype == "outer" or jointype == "leftouter") and left_len:
newrec[field][common_len:(common_len+left_len)] = r1[field][left_ind]
for field in r2.dtype.names:
- if field not in key:
+ if field not in key and common_len:
newrec[field][:common_len] = r2[field][r2ind]
if jointype == "outer" and right_len:
newrec[field][-right_len:] = r2[field][right_ind]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|