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

Display issues for vector variables/parameters in Latexify #932

Closed
TorkelE opened this issue Jun 9, 2024 · 1 comment
Closed

Display issues for vector variables/parameters in Latexify #932

TorkelE opened this issue Jun 9, 2024 · 1 comment
Labels

Comments

@TorkelE
Copy link
Member

TorkelE commented Jun 9, 2024

Simple example:

using Catalyst
@reaction_network begin
    @parameters k[1:2]
    @species (X(t))[1:2]
    (k[1],k[2]), X[1] <--> X[2]
end

produces:
image

Here:

  • For parameters we get getindex(k,i) instead of k_i
  • For Species, i is dropped entirely.

Quite a couple of things happens if we change around so that species appear in rates and parameters as reactants:

@reaction_network begin
    @parameters k[1:2] [isconstantspecies=true]
    @species (X(t))[1:2]
    (X[1],X[2]), k[1] <--> k[2]
end

image

Another vector-variable elated issue, which affects Symbolics and it is useful to keep track of, is JuliaSymbolics/Symbolics.jl#1167

@isaacsas
Copy link
Member

This seems fixed with the current release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants