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

SBML import: Undeclared identifier error when using parameters with initial assignments in observables #2150

Closed
dweindl opened this issue Jul 25, 2023 · 0 comments · Fixed by #2304 or #2305
Assignees
Labels
bug SBML SBML import related

Comments

@dweindl
Copy link
Member

dweindl commented Jul 25, 2023

Related to #2145

The problem is again the way initial assignments are handled. Parameter symbols are replaced by the initial assignment expression, but not everywhere. Observable expressions still contain the parameter symbols that have been removed elsewhere.

The best would be not eliminating those parameter symbols, and instead handling them as static expressions (as proposed in #1269).

@dweindl dweindl added bug SBML SBML import related labels Jul 25, 2023
dweindl added a commit to dweindl/AMICI that referenced this issue Feb 22, 2024
Currently, parameters that are targets of initial assignments don't show up as parameters or expressions in the amici model.
This is rather not what most users would expect.

As a first step: treat all SBML parameters that are initial assignment targets and whose initial assignment evaluates to a number as amici parameters.

Related to AMICI-dev#2150.
dweindl added a commit to dweindl/AMICI that referenced this issue Feb 22, 2024
Currently, parameters that are targets of initial assignments don't show up as parameters or expressions in the amici model. This is rather not what most users would expect.

Therefore, treat all SBML parameters that are initial assignment targets and whose initial assignment does not evaluate to a number (for those that do, see AMICI-dev#2304) as amici expressions.
Those static expressions will be handled more efficiently after AMICI-dev#2303.

Related to AMICI-dev#2150.
@dweindl dweindl self-assigned this Feb 22, 2024
dweindl added a commit to dweindl/AMICI that referenced this issue Feb 23, 2024
Currently, parameters that are targets of initial assignments don't show up as parameters or expressions in the amici model.
This is rather not what most users would expect.

As a first step: treat all SBML parameters that are initial assignment targets and whose initial assignment evaluates to a number as amici parameters.

Related to AMICI-dev#2150.
dweindl added a commit to dweindl/AMICI that referenced this issue Feb 23, 2024
Currently, parameters that are targets of initial assignments don't show up as parameters or expressions in the amici model. This is rather not what most users would expect.

Therefore, treat all SBML parameters that are initial assignment targets and whose initial assignment does not evaluate to a number (for those that do, see AMICI-dev#2304) as amici expressions.
Those static expressions will be handled more efficiently after AMICI-dev#2303.

Related to AMICI-dev#2150.
github-merge-queue bot pushed a commit that referenced this issue Feb 26, 2024
…2304)

Currently, parameters that are targets of initial assignments don't show up as parameters or expressions in the amici model.
This is rather not what most users would expect.

As a first step: treat all SBML parameters that are initial assignment targets and whose initial assignment evaluates to a number as amici parameters.

Related to #2150.
dweindl added a commit that referenced this issue Feb 27, 2024
…2305)

Currently, parameters that are targets of initial assignments don't show up as parameters or expressions in the amici model. This is rather not what most users would expect.

Therefore, treat all SBML parameters that are initial assignment targets and whose initial assignment does not evaluate to a number (for those that do, see #2304) as amici expressions.
Those static expressions will be handled more efficiently after #2303.

Related to #2150.

See also #2304.
@dweindl dweindl closed this as completed Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug SBML SBML import related
Projects
None yet
1 participant