James Conners wrote: > Hi, > > I did a quick search of the archives and didn't find anything so > here's a post of what I'm pretty sure is a bug in griddata of > matplotlib.mlab: > Matplotlib version: 0.99.1.1 > > > mlab.py: Line 2527 > > if hasattr(z,'mask'): > x = x.compress(z.mask == False) > y = y.compress(z.mask == False) > z = z.compressed() > > > This throws up if you have a scalar mask of 'False', which would > happen for instance after numpy.ma.masked_equal() where no values were > masked. > > A simple fix would be: > > if (hasattr(z, 'mask)): > if (hasattr(z.mask, 'ndim')): > x = x.compress(z.mask == False) > y = y.compress(z.mask == False) > z = z.compressed() > > Not sure what the best numpy array attribute would be to check for. > > Thanks, > James > James: It's fixed now in SVN, thanks for the report.
-Jeff ------------------------------------------------------------------------------ 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-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel