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

@equations not seeing parameters defined outside the @reaction_network macro #1042

Closed
vyudu opened this issue Sep 4, 2024 · 1 comment
Closed
Labels

Comments

@vyudu
Copy link
Collaborator

vyudu commented Sep 4, 2024

This currently throws an UndefVarError for E:

@parameters E F
@reaction_network begin
    @equations D(A) ~ E + F
end

Is this expected?

@vyudu vyudu added the bug label Sep 4, 2024
@isaacsas
Copy link
Member

isaacsas commented Sep 4, 2024

This needs to be

@reaction_network begin
    @parameters E F
    @equations D(A) ~ E + F
end

or

@reaction_network begin
    @equations D(A) ~ $E + $F
end

Variables/species/parameters declared outside the DSL need to be interpolated into it.

@isaacsas isaacsas closed this as completed Sep 4, 2024
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