clawpack/visclaw — Issue #7: AttributeError: Unrecognized attribute: amr_contour_colors
Author: ketch
Created: 2012-01-31 10:51:27+00:00
State: open

If you pull the geometry branch from ketch/pyclaw and ketch/visclaw and try to build the gallery, you'll get this:

=============================================
apps/./advection_2d
=============================================
Traceback (most recent call last):
File "./advection.py", line 109, in
output = run_app_from_main(advection2D)
File "/Users/ketch/clawpack/pyclaw/src/pyclaw/util.py", line 50, in run_app_from_main
output=application(**app_kwargs)
File "./advection.py", line 103, in advection2D
if htmlplot: pyclaw.plot.html_plot(outdir=outdir)
File "/Users/ketch/clawpack/pyclaw/src/pyclaw/plot.py", line 18, in html_plot
plotclaw.plotclaw(outdir,format=file_format)
File "/Users/ketch/clawpack/visclaw/src/python/visclaw/plotters/plotclaw.py", line 47, in plotclaw
plotpages.plotclaw_driver(plotdata, verbose=False)
File "/Users/ketch/clawpack/visclaw/src/python/visclaw/plotters/plotpages.py", line 1909, in plotclaw_driver
plotdata = frametools.call_setplot(plotdata.setplot, plotdata)
File "/Users/ketch/clawpack/visclaw/src/python/visclaw/plotters/frametools.py", line 1598, in call_setplot
plotdata = setplot(plotdata)
File "/Users/ketch/clawpack/pyclaw/apps/advection_2d/setplot.py", line 63, in setplot
plotitem.amr_contour_colors = ['b','k','r']
File "/Users/ketch/clawpack/clawutil/src/python/clawdata.py", line 83, in __setattr__
raise AttributeError("Unrecognized attribute: %s" % name)
AttributeError: Unrecognized attribute: amr_contour_colors

I tried fixing this in the obvious way (adding 'amr_contour_colors' as an attribute in ClawPlotItem) but then i got a very strange new error.