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

Parsing CellML with libcellml #184

Open
3 tasks
MichaelClerx opened this issue Dec 11, 2019 · 7 comments
Open
3 tasks

Parsing CellML with libcellml #184

MichaelClerx opened this issue Dec 11, 2019 · 7 comments

Comments

@MichaelClerx
Copy link
Contributor

MichaelClerx commented Dec 11, 2019

Have started wondering what the steps would be to eventually do this

cellml/libcellml#498

Would also involve

Update Hugh is working on the pip install at the moment.

@MichaelClerx MichaelClerx changed the title Replace parsing code with libcellml Parsing CellML with libcellml Dec 11, 2019
@MichaelClerx
Copy link
Contributor Author

Not pip-installable yet, but I think libcellml now has the features we need to read CellML 2.0 models

This would deal with model parsing, validation, and give us an API to extract the equations as MathML

@MichaelClerx
Copy link
Contributor Author

Here are the tutorials presented at COMBINE 2020: https://libcellml-tutorials.readthedocs.io/en/combine/tutorials/tutorials_index.html

@MichaelClerx
Copy link
Contributor Author

(There are also "Generator" classes for code generation, but these aren't useful for us as we want to modify things in sympy (after the CellML shell has been discarded) - unless we change it so that the cellml structure is maintained :D )

@MichaelClerx
Copy link
Contributor Author

@MichaelClerx
Copy link
Contributor Author

There is an AST you can get from libcellml, in addition to the raw MathML, which might make transpiling a lot easier

@MichaelClerx
Copy link
Contributor Author

The plan is for libcellml to stay relatively low level, and for a new libOpenCOR C++ library with Python bindings to be created, which will be able to do higher-level things. (OpenCOR itself will then use libOpenCOR)

@MichaelClerx
Copy link
Contributor Author

W.r.t. annotations the plan is for libcellml to just provide access to ids, while everything else is handled via https://github.com/sys-bio/libOmexMeta

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

No branches or pull requests

1 participant