From: Chris B. <chr...@gm...> - 2005-08-03 18:17:41
|
On 01/08/05, Chris Bainbridge <chr...@gm...> wrote: > I've looked at the pyode code. It appears that nothing is ever removed > from the global dictionary _geom_c2py_lut. Should this be done in geom > __dealloc__ ? The reference from _geom_c2py_lut to the Geom objects keeps them alive, even with garbage collection. I solved this by doing 'ode._geom_c2py_lut.clear()' at the end of each simulation. There should probably be a re-init function in the ode module itself. |