Open paulflang opened 2 years ago
Looks like another instance of https://github.com/JuliaSymbolics/SymbolicUtils.jl/issues/434
@shashi this one is going to cause (or perhaps is causing) issues for SBMLToolkit, Catalyst and ModelingToolkit. Is there a workaround one can use to avoid it till it gets fixed? Thanks!
In my use case, the output of rate_cost = SymbolicUtils.simplify_fractions(rate_const)
is expected to be a functions of parameters only. To something like convert_all_vars_to_pars(rate_const)
should fix it for me. Is there a function that does sth like that?
simplify_fractions
changes ModelingToolkit parameters to variables in some very rare cases. This creates problems downstream when usingstructural_simplify
(unbalanced reaction system). The stdout from this code block in the SBMLToolkit.get_massaction function coarsely describes the issue:prints for example
(Strangely, most reactions work fine, as does the following MWE:
)
cc @isaacsas