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

Finish dsl src update (reorder functions) #1193

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

TorkelE
Copy link
Member

@TorkelE TorkelE commented Mar 10, 2025

Follow-up to #985. Builds on #1192 (for tests to pass.

Basically does the reordering of the functions in the DSL file (which was not part of the original PR to make it less messy). With one exception (flipping the order of the get_psexpr and get_usexpr functions, to have the order with which they appear in the file), all changes are to reorder the option handling functions to appear in the same order in which they were called in the main function.

Also slightly renames two of these option handling functions, so that their names correspond to the option the handle.

end

# When compound species are declared using the "@compound begin ... end" option, get a list
# of the compound species, and also the expression that creates them.
function read_compound_option(options)
function read_compounds_option(options)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the option is called compounds, not compound.

# Reads the observables options. Outputs an expression for creating the observable variables,
# a vector containing the observable equations, and a list of all observable symbols (this
# list contains both those declared separately or inferred from the `@observables` option` input`).
function read_observed_option(options, all_ivs, us_declared, all_syms; requiredec = false)
function read_observables_option(options, all_ivs, us_declared, all_syms; requiredec = false)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the option is called observables, not observed. This one is a bit annoying as I named the option differently from argument name in the ReactionSystem constructor. At some point we might consider switching the option name.

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

Successfully merging this pull request may close these issues.

1 participant