From: Michael D. <md...@st...> - 2008-01-23 20:32:45
|
David Huard wrote: > Hi, > > calling show returns the following error using the numpy maskedarray > branch. The figure is a quiver plot on a basemap instance. I haven't personally done any testing with the maskedarray branch myself, though I know Eric Firing has done a little. > /usr/local/lib64/python2.5/site-packages/matplotlib/path.pyc in > __init__(self, vertices, codes) > 118 len(vertices), self.code_type) > 119 codes[0] = self.MOVETO > --> 120 vertices = ma.compress(npy.invert(mask1d), > vertices, 0) > 121 vertices = npy.asarray(vertices) > 122 codes = npy.where(npy.concatenate((mask1d[-1:], > mask1d[:-1])), > > AttributeError: 'module' object has no attribute 'compress' This seems to work if you change it to npy.compress -- for both the "default" ma and the maskedarray branch. I'll go ahead and commit this change, though there may be performance implications. Cheers, Mike -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |