[pymvpa] mri_plot in examples folder

John M. john.magnotti at gmail.com
Wed Apr 21 15:34:37 UTC 2010


When I try to run the mri_plot.py I get a couple warnings, and
eventually the script fails. Any suggestions? I'm new to pymvpa, so I
may be missing something simple.  I'm running on Ubuntu x86_64 using
python 2.6.4 and pymvpa 0.4.4

Thanks,

John


Traceback (most recent call last):
  File "./mri_plot.py", line 63, in <module>
    **mri_args)
  File "/usr/lib/pymodules/python2.6/mvpa/misc/plot/mri.py", line 405,
in plotMRI
    plotter.do_plot()
  File "/usr/lib/pymodules/python2.6/mvpa/misc/plot/mri.py", line 385,
in do_plot
    P.draw()
  File "/usr/lib/pymodules/python2.6/matplotlib/pyplot.py", line 352, in draw
    get_current_fig_manager().canvas.draw()
  File "/usr/lib/pymodules/python2.6/matplotlib/backends/backend_tkagg.py",
line 215, in draw
    FigureCanvasAgg.draw(self)
  File "/usr/lib/pymodules/python2.6/matplotlib/backends/backend_agg.py",
line 314, in draw
    self.figure.draw(self.renderer)
  File "/usr/lib/pymodules/python2.6/matplotlib/artist.py", line 46,
in draw_wrapper
    draw(artist, renderer, *kl)
  File "/usr/lib/pymodules/python2.6/matplotlib/figure.py", line 774, in draw
    for a in self.axes: a.draw(renderer)
  File "/usr/lib/pymodules/python2.6/matplotlib/artist.py", line 46,
in draw_wrapper
    draw(artist, renderer, *kl)
  File "/usr/lib/pymodules/python2.6/matplotlib/axes.py", line 1687, in draw
    im.draw(renderer)
  File "/usr/lib/pymodules/python2.6/matplotlib/artist.py", line 46,
in draw_wrapper
    draw(artist, renderer, *kl)
  File "/usr/lib/pymodules/python2.6/matplotlib/image.py", line 235, in draw
    im = self.make_image(renderer.get_image_magnification())
  File "/usr/lib/pymodules/python2.6/matplotlib/image.py", line 182,
in make_image
    x = self.to_rgba(self._A, self._alpha)
  File "/usr/lib/pymodules/python2.6/matplotlib/cm.py", line 166, in to_rgba
    x = self.norm(x)
  File "/usr/lib/pymodules/python2.6/matplotlib/colors.py", line 759,
in __call__
    elif vmin==vmax:
  File "/usr/lib/python2.6/dist-packages/numpy/ma/core.py", line 3119, in __eq__
    check._mask = mask
AttributeError: 'numpy.bool_' object has no attribute '_mask'



More information about the Pkg-ExpPsy-PyMVPA mailing list