Catalyst.jl icon indicating copy to clipboard operation
Catalyst.jl copied to clipboard

Compounds don't support interpolation of variables

Open isaacsas opened this issue 1 year ago • 2 comments

Which means they are not usable programmatically within code. For example

@variables t
@species A(t) B(t)
a = A
@compound AB a B   # errors
@compound AB $a B   # errors

So there is no way for a user to have a species stored in a variable and get it into the @compound macro.

isaacsas avatar Sep 25 '23 16:09 isaacsas

That's annoying. Thought we had that in the tests, but apparently missed to point this out properly when I suggested them.

TorkelE avatar Sep 26 '23 13:09 TorkelE

I thought so too, and definitely mentioned it, but somehow it was apparently missed.

isaacsas avatar Sep 26 '23 14:09 isaacsas

now works on master

TorkelE avatar Jun 04 '24 19:06 TorkelE