ComputationalPhysiology / gotran

Library for declaring and translating ODEs
http://computationalphysiology.github.io/gotran/
GNU Lesser General Public License v3.0
2 stars 1 forks source link

Add retry mechanism to deal with flaky KeyError #40

Closed finsberg closed 1 year ago

finsberg commented 1 year ago

I am unable to find out what causes this key error, but the problem is occuring when differentiation the expressions. The _xi_n variables are dummy variables introduced by sympy, see e.g https://github.com/sympy/sympy/issues/13791

Retrying to initialise the component seems to work, so this is a possible fix.

Fix #24