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
I've been trying this code of the documentation recently but stopped working:
julia> rs = @reaction_network begin
@parameters A B
A, ∅ → X
1, 2X + Y → 3X
B, X → Y
1, X → ∅
end
ERROR: LoadError: Malformed reaction line: @parameters A B
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] get_reactions(ex::Expr, reactions::Vector{Catalyst.ReactionStruct})
@ Catalyst ~/.julia/packages/Catalyst/wVYbW/src/reaction_network.jl:365
[3] get_reactions
@ ~/.julia/packages/Catalyst/wVYbW/src/reaction_network.jl:364 [inlined]
[4] make_reaction_system(ex::Expr, parameters::Tuple{}; name::Expr)
@ Catalyst ~/.julia/packages/Catalyst/wVYbW/src/reaction_network.jl:260
[5] make_reaction_system(ex::Expr, parameters::Tuple{})
@ Catalyst ~/.julia/packages/Catalyst/wVYbW/src/reaction_network.jl:254
[6] var"@reaction_network"(__source__::LineNumberNode, __module__::Module, ex::Expr, parameters::Vararg{Any})
@ Catalyst ~/.julia/packages/Catalyst/wVYbW/src/reaction_network.jl:119
in expression starting at REPL[1]:1
Am I doing something wrong?
BTW, I'm also trying to define time-dependent rates as functions. Was it suppose to work defining as @variable? Because for me it is presenting the same error as above.
Thanks.
The text was updated successfully, but these errors were encountered:
I've been trying this code of the documentation recently but stopped working:
Am I doing something wrong?
BTW, I'm also trying to define time-dependent rates as functions. Was it suppose to work defining as @variable? Because for me it is presenting the same error as above.
Thanks.
The text was updated successfully, but these errors were encountered: