Skip to content

Commit 97c03d5

Browse files
Merge pull request #5 from matthiaskoenig/develop
Changes for 0.1.0a1
2 parents c663637 + 7cb0e15 commit 97c03d5

File tree

107 files changed

+67637
-281
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+67637
-281
lines changed

.travis.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
language: python
2+
matrix:
3+
include:
4+
- os: linux
5+
sudo: required
6+
python: 3.6
7+
8+
9+
before_install:
10+
sudo apt-get install -y libhdf5-serial-dev
11+
12+
install:
13+
pip install -r requirements.txt
14+
15+
script:
16+
pytest --cov=sbmlsim
17+
18+
after_success:
19+
pip install codecov; codecov
20+
21+
cache:
22+
directories:
23+
- $HOME/.cache/pip

README.md

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,53 @@
11

2+
[![Build Status](https://travis-ci.org/matthiaskoenig/sbmlsim.svg?branch=develop)](https://travis-ci.org/matthiaskoenig/sbmlsim)
3+
[![Documentation Status](https://readthedocs.org/projects/sbmlsim/badge/?version=latest)](https://sbmlsim.readthedocs.io/en/latest/)
4+
[![License (LGPL version 3)](https://img.shields.io/badge/license-LGPLv3.0-blue.svg?style=flat-square)](http://opensource.org/licenses/LGPL-3.0)
5+
26
<h1>sbmlsim: SBML simulation made easy</h1>
3-
<b><a href="https://orcid.org/0000-0003-1725-179X" title="https://orcid.org/0000-0003-1725-179X"><img src="./docs/images/orcid.png" height="15"/></a> Matthias König</b>
7+
<b><a href="https://orcid.org/0000-0003-1725-179X" title="https://orcid.org/0000-0003-1725-179X"><img src="./docs/static/images/orcid.png" height="15"/></a> Matthias König</b>
48

59
`sbmlsim`: SBML simulation made easy
610

11+
For documentation and examples see https://sbmlsim.readthedocs.io
12+
713
### License
814
* Source Code: [LGPLv3](http://opensource.org/licenses/LGPL-3.0)
915
* Documentation: [CC BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)
1016

11-
## Funding
17+
### Funding
1218
Matthias König is supported by the Federal Ministry of Education and Research (BMBF, Germany)
1319
within the research network Systems Medicine of the Liver (**LiSyM**, grant number 031L0054).
1420

21+
## Installation
22+
`sbmlsim` currently works only python3.6.
23+
24+
HDF5 support is required which can be installed via
25+
```
26+
sudo apt-get install -y libhdf5-serial-dev
27+
```
28+
29+
Best install `sbmlsim` in a virtual environment via pip
30+
```bash
31+
# checkout code
32+
git clone https://github.com/matthiaskoenig/sbmlsim.git
33+
34+
# virtualenv
35+
cd sbmlsim
36+
mkvirtualenv sbmlsim --python=python3.6
37+
(sbmlsim) pip install -e .
38+
```
39+
The notebook support can be installed via
40+
```bash
41+
(sbmlsim) pip install jupyter jupyterlab
42+
(sbmlsim) python -m ipykernel install --user --name sbmlsim
43+
```
44+
Notebooks are available in
45+
- `docs/notebooks` (notebooks used in documentation on https://sbmlsim.readthedocs.io/en/latest/)
46+
- `notebooks`
47+
48+
and can be started from within `jupyterlab`
49+
```
50+
(sbmlsim) jupyter lab
51+
```
52+
1553
&copy; 2019 Matthias König

codecov.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
codecov:
2+
branch: develop

docs/conf.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
# import sys
1515
# sys.path.insert(0, os.path.abspath('.'))
1616

17+
import os
18+
on_rtd = os.environ.get('READTHEDOCS') == 'True'
1719

1820
# -- Project information -----------------------------------------------------
1921

@@ -30,15 +32,25 @@
3032
extensions = [
3133
'recommonmark',
3234
'sphinx_rtd_theme',
35+
'sphinx.ext.autodoc',
36+
'sphinx.ext.mathjax',
37+
'sphinx.ext.viewcode',
38+
'sphinx.ext.autosectionlabel',
39+
'IPython.sphinxext.ipython_console_highlighting', # https://github.com/jupyter/nbconvert/issues/528
3340
]
3441

42+
master_doc = 'index'
43+
44+
# The name of the Pygments (syntax highlighting) style to use.
45+
pygments_style = 'sphinx'
46+
3547
# Add any paths that contain templates here, relative to this directory.
3648
templates_path = ['_templates']
3749

3850
# List of patterns, relative to source directory, that match files and
3951
# directories to ignore when looking for source files.
4052
# This pattern also affects html_static_path and html_extra_path.
41-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
53+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'README.md']
4254

4355

4456
# -- Options for HTML output -------------------------------------------------
@@ -51,4 +63,4 @@
5163
# Add any paths that contain custom static files (such as style sheets) here,
5264
# relative to this directory. They are copied after the builtin static files,
5365
# so a file named "default.css" will overwrite the builtin "default.css".
54-
html_static_path = ['_static']
66+
html_static_path = ['static']

docs/index.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
.. sbmlsim documentation master file, created by
2-
sphinx-quickstart on Tue Oct 22 08:52:36 2019.
3-
You can adapt this file completely to your liking, but it should at least
4-
contain the root `toctree` directive.
5-
61
Welcome to sbmlsim's documentation!
72
===================================
83

4+
``sbmlsim``: Python utilities for simulating `SBML <http://www.sbml.org>`_ models available at
5+
`https://github.com/matthiaskoenig/sbmlsim <https://github.com/matthiaskoenig/sbmlsim>`_.
6+
7+
Contents:
8+
99
.. toctree::
1010
:maxdepth: 2
11-
:caption: Contents:
1211

13-
overview
12+
introduction
1413
notebooks/simjson.rst
1514

1615

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Overview
1+
# Introduction
22

33
**Mission**: make SBML simulations great again
44

@@ -15,6 +15,9 @@ simulations with SBML models in python.
1515
- parameter scans
1616
- parameter sensitivity analysis
1717

18+
A simplified exchange language based on JSON is part of `sbmlsim`
19+
20+
1821
**Visualization**
1922
- interactive plots (altair)
2023

docs/make_docs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ echo "--------------------------------------"
1818
echo "remove old documentation"
1919
echo "--------------------------------------"
2020
rm -rf _built
21-
rm -rf _static
2221
rm -rf _templates
2322
rm -rf _notebooks
2423

@@ -35,7 +34,8 @@ echo "--------------------------------------"
3534
echo "postprocessing notebooks rst"
3635
echo "--------------------------------------"
3736
# remove the following lines from the documentation
38-
# sed -i '/%matplotlib inline/d' ./*.rst
37+
sed -i '/%load_ext autoreload/d' $NBDIR/*.rst
38+
sed -i '/%autoreload 2/d' $NBDIR/*.rst
3939

4040
# change the image locations (FIXME)
4141
sed -i -- 's/.. image:: /.. image:: notebooks\/docs\//g' ./*.rst
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"timecourses": [
3+
{
4+
"start": 0,
5+
"end": 60,
6+
"steps": 60,
7+
"changes": {},
8+
"model_changes": {}
9+
}
10+
],
11+
"selections": null,
12+
"reset": true
13+
}

0 commit comments

Comments
 (0)