Skip to content

Replace a variable's equation #118

@MichaelClerx

Description

@MichaelClerx

Given a variable, we need a method to set/replace its RHS

From FC, I can read equations (with variables specified as ontology terms) and units (using an FC unit syntax).

In a two-way communication approach, I could then:

  • ask the cellmlmanip model for the symbols for each term
  • ask the cellmlmanip model for the unit objects corresponding to my units
  • pass in an equation with symbols pointing to model variables and literals as dummies containing the model's unit vars

Buuuut, that would mean fc talking to cellmlmanip through cg, so would probably prefer a one-way approach

  • give cellmlmanip a sympy equation with variables as ontology terms and units in some syntax that pint understands?
  • cellmlmanip then replaces the ontology terms and units

So then we'd need to write some mini-spec for how cellmlmanip expects variable symbols and units?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions