Subject: [Viper-dev] [HG viper] Viper can now be a wxwidget if given a wx.Frame. Added warpscalar in standalone viper. Added more tests.

From: [email-masked]
Date: Fri, 27 Jun 2008 11:33:50 +0200 (CEST)

One or more new changesets pushed to the primary Viper repository.
A short summary of the last three changesets is included below.

changeset:   88:7d87cdaf0080605b5790033e8b28b4e325e6756a
tag:         tip
user:        "Ola Skavhaug <[email-masked]>"
date:        Fri Jun 27 11:34:18 2008 +0200
files:       src/demo/test_standalone.py src/demo/testwx.py src/viper/viper.py
description:
Viper can now be a wxwidget if given a wx.Frame. Added warpscalar in standalone viper. Added more tests.

changeset:   87:2d160c594823571612f2122fbd1eab24f30d870e
user:        "Ola Skavhaug <[email-masked]>"
date:        Fri Jun 20 11:39:10 2008 +0200
files:       src/bin/viper src/viper/viper.py src/viper/viper_dolfin.py
description:
Added title to viper plot window through title keyword argument.

changeset:   86:3162241d324c8acb62c6bd444b7d8c18955d2a46
user:        "Ola Skavhaug <[email-masked]>"
date:        Fri Jun 20 08:57:02 2008 +0200
files:       src/viper/viper_dolfin.py
description:
spesify->specify

----------------------------------------------------------------------
For more details, visit http://www.fenics.org/hg/viper

---

From: "Johannes Ring" <[email-masked]>
Date: Fri, 27 Jun 2008 12:04:49 +0200 (CEST)

> standalone viper. Added more tests.

I think this broke the plot demo in DOLFIN:

johannr@simula-x61:python$ pwd
/home/johannr/src/hg/dolfin/demo/plot/python
johannr@simula-x61:python$ python demo.py
Traceback (most recent call last):
  File "demo.py", line 36, in <module>
    plot(mesh)
  File "/usr/local/lib/python2.5/site-packages/viper/viper_dolfin.py",
line 266, in plot
    fig = _plotter.plot(data, **kwargs)
  File "/usr/local/lib/python2.5/site-packages/viper/viper_dolfin.py",
line 216, in plot
    return self.autoplot(plot_object, *args, **kwargs)
  File "/usr/local/lib/python2.5/site-packages/viper/viper_dolfin.py",
line 230, in autoplot
    plotter = Viper(plot_object, *args, **kwargs)
  File "/usr/local/lib/python2.5/site-packages/viper/viper_dolfin.py",
line 42, in __init__
    self.plot(data, *args, **kwargs)
  File "/usr/local/lib/python2.5/site-packages/viper/viper_dolfin.py",
line 65, in plot
    self.plot_mesh(data, *args, **kwargs)
  File "/usr/local/lib/python2.5/site-packages/viper/viper_dolfin.py",
line 78, in plot_mesh
    (self.iren, self.renWin, self.ren) = self.simple_plotter(self.vtkgrid,
self.x.min(), self.x.max(), wireframe=True)
  File "/usr/local/lib/python2.5/site-packages/viper/viper.py", line 727,
in simple_plotter
    ren, renWin = self._construct_renderer()
  File "/usr/local/lib/python2.5/site-packages/viper/viper.py", line 511,
in _construct_renderer
    if self.frame is not None:
AttributeError: 'Viper' object has no attribute 'frame'
johannr@simula-x61:python$

Johannes

> _______________________________________________
> Viper-dev mailing list
> [email-masked]
> http://fenics.org/mailman/listinfo/viper-dev
>

---

From: Ilmar Wilbers <[email-masked]>
Date: Fri, 27 Jun 2008 12:50:52 +0200

This is something that should be picked up by the buildbot, meaning some 
test should be added to Viper. Currently, all that is done is a 'python 
setup.py install'.

ilmar