Skip to content
New issue

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

Problem with extend if things are in a specific order (ERROR: type ReactionSystem has no field gui_metadata) #658

Closed
TorkelE opened this issue Aug 4, 2023 · 0 comments

Comments

@TorkelE
Copy link
Member

TorkelE commented Aug 4, 2023

Get problems when extending a reaction system with a MTK ODESystem. However, it is only for one order. Does it seem useful to have both orders work?

Example:

using Catalyst, ModelingToolkit, OrdinaryDiffEq

@parameters h
@variables t T(t)
D = Differential(t)
eq = D(T) ~ h - T
@named heater = ODESystem([eq])

equi_system = @reaction_network begin
    @variables T(t)
    (T,1), X <--> Y
end

@named heat_system = extend(equi_system, heater) # Error
@named heat_system = extend(heater, equi_system) # Works

This is the error message:

ERROR: type ReactionSystem has no field gui_metadata
Stacktrace:

get_gui_metadata(sys::ReactionSystem{Catalyst.NetworkProperties{Int64, SymbolicUtils.BasicSymbolic{Real}}}) at [/home/torkelloman/.julia/packages/ModelingToolkit/xLMQM/src/systems/abstractsystem.jl](vscode-file://vscode-app/snap/code/134/usr/share/code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)

kwcall(::NamedTuple{(:name,), Tuple{Symbol}}, ::typeof(extend), sys::ReactionSystem{Catalyst.NetworkProperties{Int64, SymbolicUtils.BasicSymbolic{Real}}}, basesys::ODESystem) at [/home/torkelloman/.julia/packages/ModelingToolkit/xLMQM/src/systems/abstractsystem.jl](vscode-file://vscode-app/snap/code/134/usr/share/code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)

top-level scope at [/home/torkelloman/.julia/packages/ModelingToolkit/xLMQM/src/systems/abstractsystem.jl](vscode-file://vscode-app/snap/code/134/usr/share/code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants