You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When loading some odes I sometimes get the following error
Loaded ODE model 'tentusscher_panfilov_2006_M_cell' with:
Num full states: 19
Num parameters: 53
Traceback (most recent call last):
File "/Users/henriknf/local/src/goss/demo/tentusscher_panfilov_2006_M_cell/demo.py", line 6, in <module>
ode = goss.ODE(gotran_ode)
File "/Users/henriknf/local/src/goss/python/goss/ode.py", line 22, in __init__
self._cpp_object = jit(args[0], **kwargs)
File "/Users/henriknf/local/src/goss/python/goss/compilemodule.py", line 108, in jit
python_object = cppyy_jit(
File "/Users/henriknf/local/src/goss/python/goss/compilemodule.py", line 59, in cppyy_jit
cpp_code = cgen.file_code()
File "/Users/henriknf/local/src/goss/python/goss/codegeneration.py", line 360, in file_code
self.file_form["CLASS_DECLARATION"] = self.class_code()
File "/Users/henriknf/local/src/goss/python/goss/codegeneration.py", line 349, in class_code
self._eval_linearized_code()
File "/Users/henriknf/local/src/goss/python/goss/codegeneration.py", line 561, in _eval_linearized_code
lin = linearized_derivatives(
File "/Users/henriknf/local/src/gotran/gotran/codegeneration/algorithmcomponents.py", line 232, in linearized_derivatives
return LinearizedDerivativeComponent(
File "/Users/henriknf/local/src/gotran/gotran/codegeneration/algorithmcomponents.py", line 1049, in __init__
self.add_indexed_expression(
File "/Users/henriknf/local/src/gotran/gotran/codegeneration/codecomponent.py", line 249, in add_indexed_expression
self._register_component_object(expr, dependent)
File "/Users/henriknf/local/src/gotran/gotran/model/odecomponent.py", line 769, in _register_component_object
self.root.register_ode_object(obj, self, dependent)
File "/Users/henriknf/local/src/gotran/gotran/model/ode.py", line 681, in register_ode_object
expression_added |= self._expand_single_derivative(
File "/Users/henriknf/local/src/gotran/gotran/model/ode.py", line 1113, in _expand_single_derivative
var_obj = self.present_ode_objects[sympycode(der_expr.args[1])]
KeyError: '_xi_5'
However, the error is very flaky, meaning that running the command again might succeed.
The text was updated successfully, but these errors were encountered:
When loading some odes I sometimes get the following error
However, the error is very flaky, meaning that running the command again might succeed.
The text was updated successfully, but these errors were encountered: