On Apr 24, 2012, at 4:33 PM, Rodney Clayton wrote: > File "/usr/lib/pymodules/python2.7/fipy/viewers/matplotlibViewer/ > matplotlib1DViewer.py", line 107, in _getSuitableVars > vars = [var for var in _MatplotlibViewer._getSuitableVars(self, vars) > if var.getMesh().getDim() == 1] > > AttributeError: 'function' object has no attribute 'getMesh' > > > > It is interesting that it is trying to use the matplotlib1Dviewer > since my problem is on a 2D mesh.
FiPy doesn't know what your are trying to plot, so it tries a succession of viewers until it finds an appropriate one. > However, when I use the > matplotlib2DGridviewer I receive the same kind of Attribute Error. > Any ideas on why this is happening and how I might be able to fix it? > I appreciate the help. We would need to see your code that creates the viewer, but you are apparently passing it something other than a CellVariable. If forced to guess, I'd say you are passing something like var.getGrad, which is a function, and not var.getGrad(), which is the value of that function. _______________________________________________ fipy mailing list [email protected] http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
