We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There are several places where SymPy functions could be used:
MIRA throws no error when I use for example sympy.sin(t) as an expression string:
sympy.sin(t)
t = sympy.Symbol('t') S, I, R, V = sympy.symbols('S I R V', cls = sympy.Function) a, b, c, d, g, k = sympy.symbols('a b c d g k') odes = [ sympy.Eq(S(t).diff(t), - S(t) * (a * I(t) + b * R(t) + c * R(t) + d * V(t))), sympy.Eq(I(t).diff(t), S(t) * (a * I(t) + b * R(t) + c * R(t) + d * V(t)) - g * I(t)), sympy.Eq(R(t).diff(t), k * g * I(t)), sympy.Eq(V(t).diff(t), (1 - k) * g * I(t)) ] model4 = template_model_from_sympy_odes(odes) model4.observables = { 'Dummy': Observable(name = 'Dummy', expression = safe_parse_expr('S + I + R + V + sympy.sin(t)', local_dict = _clash)) }
However, it is interpreted as sympyXX_XXsin(t) and exported as is in the AMR.
sympyXX_XXsin(t)
If I were to use a SymPy function as part of the ODE:
odes[3] = sympy.Eq(V(t).diff(t), (1 - k) * g * I(t) - sympy.exp(a) * V(t))
then I get this error
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There are several places where SymPy functions could be used:
MIRA throws no error when I use for example
sympy.sin(t)
as an expression string:However, it is interpreted as

sympyXX_XXsin(t)
and exported as is in the AMR.
If I were to use a SymPy function as part of the ODE:
then I get this error

The text was updated successfully, but these errors were encountered: