Revision: 8021 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8021&view=rev Author: astraw Date: 2009-12-11 00:59:34 +0000 (Fri, 11 Dec 2009)
Log Message: ----------- rec2csv raises explicit error when recarray ndim not 1 Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/mlab.py Modified: trunk/matplotlib/lib/matplotlib/mlab.py =================================================================== --- trunk/matplotlib/lib/matplotlib/mlab.py 2009-12-11 00:59:25 UTC (rev 8020) +++ trunk/matplotlib/lib/matplotlib/mlab.py 2009-12-11 00:59:34 UTC (rev 8021) @@ -2598,6 +2598,9 @@ return func(val) return newfunc + if r.ndim != 1: + raise ValueError('rec2csv only operates on 1 dimensional recarrays') + formatd = get_formatd(r, formatd) funcs = [] for i, name in enumerate(r.dtype.names): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins