Giter VIP home page Giter VIP logo

chaste-codegen-sbml's Introduction

Chaste code generation from SBML

The chaste_codegen_sbml module takes SBML models as input and uses libSBML to parse the models and output C++ code for Chaste.

Installation

We recommend installing in a virtual environment e.g.

python -m venv /path/to/new/virtual/environment
source /path/to/new/virtual/environment/bin/activate

User installation:

cd /path/to/chaste_codegen_sbml
pip install .

Developer installation. This adds additional dependencies for development and testing (e.g. pytest) and makes the installation editable:

cd /path/to/chaste_codegen_sbml
pip install -e .[dev]

Usage

chaste_codegen_sbml [-h] sbml_file

Testing

chaste-codegen-sbml's People

Contributors

kwabenantim avatar

Watchers

Gary Mirams avatar Martin Robinson avatar Alex Fletcher avatar Chaste Raspberry Pi avatar Joe Pitt-Francis avatar  avatar Ben Evans avatar

chaste-codegen-sbml's Issues

CI Testing

Summary
Add CI testing to compare generated code with reference models, similar to practice in chaste_codegen.

Merge with chaste-codegen

Summary
Merge chaste-codegen-sbml into one package with chaste-codegen.

Advantages include:

  • Simpler to install during configuration step in Chaste builds.
  • Easier to synch dependency versions between the two packages e.g. Jinja.
  • Good timing to create a structure which we can later extend to add support for generating Chaste code from other formats.

Disadvantages include:

  • Chaste-codegen is already published and in use so changes should minimize impact on current users and existing references.

Package for PyPI

Summary
Package for PyPI so that we can start doing pip install chaste_codegen_sbml.

Goldbeter 1991 Fixes

Summary
Fix code generation with lessons learned from Goldbeter 1991 sbml:

  • Fix variable names. Names can have spaces so perhaps use ids instead, or do some name mangling.
  • Fix generated number of ODE parameters (for Goldbeter, it was 5 rather than 3).
  • Add methods to get state variables. Use variable names for clarity.
  • Allow solver selection in command line e.g. RungeKutta4IvpOdeSolver or CVODE.
  • Consider generating custom Srn model separately to replace template.
  • Allow setting solver SetDt(0.1) in command line.
  • Allow customizing timescale of results?

Related Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.