odetoolbox 2.4.1__tar.gz → 2.5.10.post0.dev0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odetoolbox-2.5.10.post0.dev0/.github/workflows/ode-toolbox-build.yml +101 -0
- odetoolbox-2.5.10.post0.dev0/.gitignore +7 -0
- odetoolbox-2.5.10.post0.dev0/.readthedocs.yml +13 -0
- odetoolbox-2.5.10.post0.dev0/MANIFEST.in +1 -0
- {odetoolbox-2.4.1 → odetoolbox-2.5.10.post0.dev0}/PKG-INFO +1 -3
- odetoolbox-2.5.10.post0.dev0/codemeta.json +37 -0
- odetoolbox-2.5.10.post0.dev0/doc/conf.py +292 -0
- odetoolbox-2.5.10.post0.dev0/doc/css/custom.css +149 -0
- odetoolbox-2.5.10.post0.dev0/doc/css/pygments.css +70 -0
- odetoolbox-2.5.10.post0.dev0/doc/fig/eq_analysis_0.png +0 -0
- odetoolbox-2.5.10.post0.dev0/doc/fig/eq_analysis_1.png +0 -0
- odetoolbox-2.5.10.post0.dev0/doc/fig/eq_analysis_2.png +0 -0
- odetoolbox-2.5.10.post0.dev0/doc/fig/flow_diagram.png +0 -0
- odetoolbox-2.5.10.post0.dev0/doc/fig/flow_diagram.tex +41 -0
- odetoolbox-2.5.10.post0.dev0/doc/fig/ode-toolbox-flow-diagram-detailed.png +0 -0
- odetoolbox-2.5.10.post0.dev0/doc/fig/ode-toolbox-flow-diagram-detailed.svg +721 -0
- odetoolbox-2.5.10.post0.dev0/doc/fig/ode-toolbox-flow-diagram.png +0 -0
- odetoolbox-2.5.10.post0.dev0/doc/fig/ode-toolbox-flow-diagram.svg +258 -0
- odetoolbox-2.5.10.post0.dev0/doc/fig/ode-toolbox-logo.png +0 -0
- odetoolbox-2.5.10.post0.dev0/doc/fig/ode-toolbox-logo.svg +235 -0
- odetoolbox-2.5.10.post0.dev0/doc/fig/stiffness_example.png +0 -0
- odetoolbox-2.5.10.post0.dev0/doc/fig/test_analytic_solver_integration.png +0 -0
- odetoolbox-2.5.10.post0.dev0/doc/fig/test_mixed_integrator_numeric.png +0 -0
- odetoolbox-2.5.10.post0.dev0/doc/index.rst +677 -0
- odetoolbox-2.5.10.post0.dev0/doc/js/expand_toc_tree.js +21 -0
- odetoolbox-2.5.10.post0.dev0/doc/requirements.txt +7 -0
- {odetoolbox-2.4.1 → odetoolbox-2.5.10.post0.dev0}/ode_analyzer.py +2 -2
- {odetoolbox-2.4.1 → odetoolbox-2.5.10.post0.dev0}/odetoolbox/__init__.py +100 -66
- {odetoolbox-2.4.1 → odetoolbox-2.5.10.post0.dev0}/odetoolbox/analytic_integrator.py +5 -2
- odetoolbox-2.5.10.post0.dev0/odetoolbox/config.py +49 -0
- {odetoolbox-2.4.1 → odetoolbox-2.5.10.post0.dev0}/odetoolbox/dependency_graph_plotter.py +4 -1
- {odetoolbox-2.4.1 → odetoolbox-2.5.10.post0.dev0}/odetoolbox/mixed_integrator.py +11 -10
- {odetoolbox-2.4.1 → odetoolbox-2.5.10.post0.dev0}/odetoolbox/shapes.py +71 -81
- odetoolbox-2.5.10.post0.dev0/odetoolbox/singularity_detection.py +214 -0
- {odetoolbox-2.4.1 → odetoolbox-2.5.10.post0.dev0}/odetoolbox/spike_generator.py +7 -4
- {odetoolbox-2.4.1 → odetoolbox-2.5.10.post0.dev0}/odetoolbox/stiffness.py +4 -4
- odetoolbox-2.5.10.post0.dev0/odetoolbox/sympy_helpers.py +168 -0
- {odetoolbox-2.4.1 → odetoolbox-2.5.10.post0.dev0}/odetoolbox/system_of_shapes.py +128 -64
- {odetoolbox-2.4.1 → odetoolbox-2.5.10.post0.dev0}/odetoolbox.egg-info/PKG-INFO +1 -3
- odetoolbox-2.5.10.post0.dev0/odetoolbox.egg-info/SOURCES.txt +83 -0
- odetoolbox-2.5.10.post0.dev0/readme.md +27 -0
- odetoolbox-2.5.10.post0.dev0/requirements.txt +5 -0
- {odetoolbox-2.4.1 → odetoolbox-2.5.10.post0.dev0}/setup.py +3 -2
- odetoolbox-2.5.10.post0.dev0/tests/__init__.py +22 -0
- odetoolbox-2.5.10.post0.dev0/tests/context.py +28 -0
- odetoolbox-2.5.10.post0.dev0/tests/eiaf_cond_alpha.json +30 -0
- odetoolbox-2.5.10.post0.dev0/tests/iaf_cond_alpha.json +30 -0
- odetoolbox-2.5.10.post0.dev0/tests/iaf_psc_exp.json +16 -0
- odetoolbox-2.5.10.post0.dev0/tests/lorenz_attractor.json +21 -0
- odetoolbox-2.5.10.post0.dev0/tests/mixed_analytic_numerical_no_stiffness.json +26 -0
- odetoolbox-2.5.10.post0.dev0/tests/mixed_analytic_numerical_with_stiffness.json +48 -0
- odetoolbox-2.5.10.post0.dev0/tests/morris_lecar.json +30 -0
- odetoolbox-2.5.10.post0.dev0/tests/nonlinear.json +8 -0
- odetoolbox-2.5.10.post0.dev0/tests/nonlinear_between_shapes.json +39 -0
- odetoolbox-2.5.10.post0.dev0/tests/stiff_system.json +33 -0
- odetoolbox-2.5.10.post0.dev0/tests/system_matrix_test.json +21 -0
- odetoolbox-2.5.10.post0.dev0/tests/test_alpha_function_of_time.json +15 -0
- odetoolbox-2.5.10.post0.dev0/tests/test_analysis_mixed_analytic_numerical.py +50 -0
- odetoolbox-2.5.10.post0.dev0/tests/test_analytic_integrator.py +113 -0
- odetoolbox-2.5.10.post0.dev0/tests/test_analytic_solver_integration.py +271 -0
- odetoolbox-2.5.10.post0.dev0/tests/test_double_exponential.py +164 -0
- odetoolbox-2.5.10.post0.dev0/tests/test_expression_simplification.py +74 -0
- odetoolbox-2.5.10.post0.dev0/tests/test_inhomogeneous.py +228 -0
- odetoolbox-2.5.10.post0.dev0/tests/test_inhomogeneous_numerically_zero.py +134 -0
- odetoolbox-2.5.10.post0.dev0/tests/test_integration.json +28 -0
- odetoolbox-2.5.10.post0.dev0/tests/test_lin_const_coeff_and_homogeneous.py +110 -0
- odetoolbox-2.5.10.post0.dev0/tests/test_linearity_checker.py +0 -0
- odetoolbox-2.5.10.post0.dev0/tests/test_lorenz_attractor.py +49 -0
- odetoolbox-2.5.10.post0.dev0/tests/test_malformed_input.py +66 -0
- odetoolbox-2.5.10.post0.dev0/tests/test_mixed_integrator_numeric.py +140 -0
- odetoolbox-2.5.10.post0.dev0/tests/test_propagator_solver_homogeneous.json +38 -0
- odetoolbox-2.5.10.post0.dev0/tests/test_propagator_solver_homogeneous.py +36 -0
- odetoolbox-2.5.10.post0.dev0/tests/test_shapes.py +44 -0
- odetoolbox-2.5.10.post0.dev0/tests/test_singularity_detection.py +104 -0
- odetoolbox-2.5.10.post0.dev0/tests/test_stiffness.py +64 -0
- odetoolbox-2.5.10.post0.dev0/tests/test_system_matrix_construction.py +71 -0
- odetoolbox-2.5.10.post0.dev0/tests/test_utils.py +30 -0
- odetoolbox-2.5.10.post0.dev0/tests/third_order.json +39 -0
- odetoolbox-2.4.1/odetoolbox/sympy_printer.py +0 -67
- odetoolbox-2.4.1/odetoolbox.egg-info/SOURCES.txt +0 -19
- {odetoolbox-2.4.1 → odetoolbox-2.5.10.post0.dev0}/LICENSE.md +0 -0
- {odetoolbox-2.4.1 → odetoolbox-2.5.10.post0.dev0}/odetoolbox/integrator.py +0 -0
- {odetoolbox-2.4.1 → odetoolbox-2.5.10.post0.dev0}/odetoolbox/plot_helper.py +0 -0
- {odetoolbox-2.4.1 → odetoolbox-2.5.10.post0.dev0}/odetoolbox.egg-info/dependency_links.txt +0 -0
- {odetoolbox-2.4.1 → odetoolbox-2.5.10.post0.dev0}/odetoolbox.egg-info/top_level.txt +0 -0
- {odetoolbox-2.4.1 → odetoolbox-2.5.10.post0.dev0}/setup.cfg +0 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
name: ODE-toolbox build
|
|
2
|
+
on: [push, pull_request]
|
|
3
|
+
|
|
4
|
+
jobs:
|
|
5
|
+
static_checks:
|
|
6
|
+
runs-on: ubuntu-latest
|
|
7
|
+
steps:
|
|
8
|
+
- name: Checkout ODE-toolbox code
|
|
9
|
+
uses: actions/checkout@v4
|
|
10
|
+
|
|
11
|
+
- name: Setup Python
|
|
12
|
+
uses: actions/setup-python@v5
|
|
13
|
+
with:
|
|
14
|
+
python-version: 3.9
|
|
15
|
+
|
|
16
|
+
- name: Install apt dependencies
|
|
17
|
+
run: |
|
|
18
|
+
sudo apt update
|
|
19
|
+
sudo apt install pkg-config python3-all-dev
|
|
20
|
+
|
|
21
|
+
- name: Install Python dependencies
|
|
22
|
+
run: |
|
|
23
|
+
python -m pip install --upgrade pip pytest pycodestyle codecov pytest-cov wheel
|
|
24
|
+
python -m pip install -r requirements.txt
|
|
25
|
+
export PYTHON_VERSION=`python -c "import sys; print('.'.join(map(str, [sys.version_info.major, sys.version_info.minor])))"`
|
|
26
|
+
echo "Python version detected:"
|
|
27
|
+
echo $PYTHON_VERSION
|
|
28
|
+
|
|
29
|
+
- name: Install ODE-toolbox
|
|
30
|
+
run: |
|
|
31
|
+
echo PYTHONPATH=`pwd` >> $GITHUB_ENV
|
|
32
|
+
python setup.py install
|
|
33
|
+
|
|
34
|
+
- name: Static code style analysis
|
|
35
|
+
run: |
|
|
36
|
+
python3 -m pycodestyle $GITHUB_WORKSPACE -v --ignore=E241,E501,E303,E714,E713,E714,E252 --exclude=$GITHUB_WORKSPACE/doc,$GITHUB_WORKSPACE/.eggs,$GITHUB_WORKSPACE/build,$GITHUB_WORKSPACE/.git,$GITHUB_WORKSPACE/odetoolbox.egg-info,$GITHUB_WORKSPACE/dist
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
build:
|
|
40
|
+
needs: [static_checks]
|
|
41
|
+
runs-on: ubuntu-latest
|
|
42
|
+
strategy:
|
|
43
|
+
fail-fast: false
|
|
44
|
+
matrix:
|
|
45
|
+
with_gsl: ["0", "1"]
|
|
46
|
+
sympy_version: ["==1.10.1", ""] # EBRAINS Lab current version and empty string for "latest"
|
|
47
|
+
|
|
48
|
+
steps:
|
|
49
|
+
- name: Checkout ODE-toolbox code
|
|
50
|
+
uses: actions/checkout@v4
|
|
51
|
+
|
|
52
|
+
- name: Setup Python
|
|
53
|
+
uses: actions/setup-python@v5
|
|
54
|
+
with:
|
|
55
|
+
python-version: 3.9
|
|
56
|
+
|
|
57
|
+
- name: Install apt dependencies
|
|
58
|
+
run: |
|
|
59
|
+
sudo apt update
|
|
60
|
+
sudo apt install pkg-config python3-all-dev
|
|
61
|
+
|
|
62
|
+
- name: Install GSL
|
|
63
|
+
if: ${{ matrix.with_gsl == '1' }}
|
|
64
|
+
run: |
|
|
65
|
+
sudo apt remove libgsl27 libgsl-dev # remove system-wide GSL version that is installed by default
|
|
66
|
+
cd ..
|
|
67
|
+
wget https://mirror.ibcp.fr/pub/gnu/gsl/gsl-2.7.tar.gz # this should be "gsl-latest.tar.gz", but there is an issue with GSL 2.8 (see https://github.com/pygsl/pygsl/issues/62)
|
|
68
|
+
tar -xzf gsl-2.7.tar.gz
|
|
69
|
+
cd gsl-2.7
|
|
70
|
+
./configure && make && sudo make install
|
|
71
|
+
|
|
72
|
+
- name: Install Python dependencies
|
|
73
|
+
run: |
|
|
74
|
+
python -m pip install --upgrade pip pytest pycodestyle codecov pytest-cov wheel
|
|
75
|
+
python -m pip install numpy
|
|
76
|
+
if [ "${{ matrix.with_gsl }}" == "1" ]; then python3 -m pip install -v https://github.com/pygsl/pygsl/archive/refs/tags/v2.4.1.tar.gz ; fi # this should be "pip install pygsl", but see https://github.com/pygsl/pygsl/issues/59
|
|
77
|
+
python -m pip install -r requirements.txt
|
|
78
|
+
export PYTHON_VERSION=`python -c "import sys; print('.'.join(map(str, [sys.version_info.major, sys.version_info.minor])))"`
|
|
79
|
+
echo "Python version detected:"
|
|
80
|
+
echo $PYTHON_VERSION
|
|
81
|
+
|
|
82
|
+
pip uninstall --yes sympy
|
|
83
|
+
pip install sympy${{ matrix.sympy_version }}
|
|
84
|
+
echo "Using sympy version:"
|
|
85
|
+
python -c "import sympy; print(sympy.__version__)"
|
|
86
|
+
|
|
87
|
+
- name: Install ODE-toolbox
|
|
88
|
+
run: |
|
|
89
|
+
echo PYTHONPATH=`pwd` >> $GITHUB_ENV
|
|
90
|
+
python setup.py install
|
|
91
|
+
|
|
92
|
+
- name: Run unit tests
|
|
93
|
+
run: |
|
|
94
|
+
echo "[run]" > .coveragerc
|
|
95
|
+
echo "omit = tests/*" >> .coveragerc
|
|
96
|
+
echo >> .coveragerc
|
|
97
|
+
python -m pytest -s -o log_cli=true -o log_cli_level="DEBUG" --cov=. --cov-config=.coveragerc tests
|
|
98
|
+
|
|
99
|
+
- name: Run codecov
|
|
100
|
+
run: |
|
|
101
|
+
codecov
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
recursive-include tests *
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odetoolbox
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.5.10.post0.dev0
|
|
4
4
|
Summary: ODE-toolbox: Automatic selection and generation of integration schemes for systems of ordinary differential equations
|
|
5
5
|
Home-page: https://github.com/nest/ode-toolbox
|
|
6
6
|
Author: The NEST Initiative
|
|
7
7
|
License: GNU General Public License v2 (GPLv2)
|
|
8
8
|
Keywords: computational neuroscience model ordinary differential equation ode dynamical dynamic simulation
|
|
9
|
-
Platform: UNKNOWN
|
|
10
9
|
Classifier: Development Status :: 4 - Beta
|
|
11
10
|
Classifier: Environment :: Console
|
|
12
11
|
Classifier: Intended Audience :: Science/Research
|
|
@@ -23,4 +22,3 @@ License-File: LICENSE.md
|
|
|
23
22
|
Choosing the optimal solver for systems of ordinary differential equations (ODEs) is a critical step in dynamical systems simulation. ODE-toolbox is a Python package that assists in solver benchmarking, and recommends solvers on the basis of a set of user-configurable heuristics. For all dynamical equations that admit an analytic solution, ODE-toolbox generates propagator matrices that allow the solution to be calculated at machine precision. For all others, first-order update expressions are returned based on the Jacobian matrix.
|
|
24
23
|
|
|
25
24
|
In addition to continuous dynamics, discrete events can be used to model instantaneous changes in system state, such as a neuronal action potential. These can be generated by the system under test as well as applied as external stimuli, making ODE-toolbox particularly well-suited for applications in computational neuroscience.
|
|
26
|
-
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": "https://w3id.org/codemeta/3.0",
|
|
3
|
+
"type": "SoftwareSourceCode",
|
|
4
|
+
"applicationCategory": "computational neuroscience",
|
|
5
|
+
"codeRepository": "https://github.com/nest/ode-toolbox/",
|
|
6
|
+
"description": "Automatic selection and generation of integration schemes for systems of ordinary differential equations",
|
|
7
|
+
"funder": {
|
|
8
|
+
"type": "Organization",
|
|
9
|
+
"name": "Jülich Research Centre GmbH, Jülich, Germany"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"ODE",
|
|
13
|
+
"ordinary differential equation",
|
|
14
|
+
"differential equation",
|
|
15
|
+
"dynamics",
|
|
16
|
+
"dynamical",
|
|
17
|
+
"dynamic system",
|
|
18
|
+
"hybrid dynamic system",
|
|
19
|
+
"neuron",
|
|
20
|
+
"synapse",
|
|
21
|
+
"neuroscience",
|
|
22
|
+
"neural network",
|
|
23
|
+
"spiking",
|
|
24
|
+
"event",
|
|
25
|
+
"discrete event"
|
|
26
|
+
],
|
|
27
|
+
"license": "https://spdx.org/licenses/GPL-2.0-only",
|
|
28
|
+
"name": "ODE-toolbox",
|
|
29
|
+
"programmingLanguage": "Python",
|
|
30
|
+
"codemeta:contIntegration": {
|
|
31
|
+
"id": "https://github.com/nest/ode-toolbox/"
|
|
32
|
+
},
|
|
33
|
+
"continuousIntegration": "https://github.com/nest/ode-toolbox/",
|
|
34
|
+
"issueTracker": "https://github.com/nest/ode-toolbox/issues",
|
|
35
|
+
"version": "2.5.10-post-dev"
|
|
36
|
+
}
|
|
37
|
+
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# conf.py
|
|
4
|
+
#
|
|
5
|
+
# This file is part of NEST.
|
|
6
|
+
#
|
|
7
|
+
# Copyright (C) 2004 The NEST Initiative
|
|
8
|
+
#
|
|
9
|
+
# NEST is free software: you can redistribute it and/or modify
|
|
10
|
+
# it under the terms of the GNU General Public License as published by
|
|
11
|
+
# the Free Software Foundation, either version 2 of the License, or
|
|
12
|
+
# (at your option) any later version.
|
|
13
|
+
#
|
|
14
|
+
# NEST is distributed in the hope that it will be useful,
|
|
15
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
# GNU General Public License for more details.
|
|
18
|
+
#
|
|
19
|
+
# You should have received a copy of the GNU General Public License
|
|
20
|
+
# along with NEST. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
|
|
22
|
+
"""
|
|
23
|
+
Readthedocs configuration file
|
|
24
|
+
------------------------------
|
|
25
|
+
|
|
26
|
+
Use:
|
|
27
|
+
sphinx-build -c ../extras/help_generator -b html . _build/html
|
|
28
|
+
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
import sys
|
|
32
|
+
import os
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
import pip
|
|
36
|
+
|
|
37
|
+
# pip.main(['install', 'Sphinx==1.5.6'])
|
|
38
|
+
# pip.main(['install', 'sphinx-gallery'])
|
|
39
|
+
|
|
40
|
+
# import sphinx_gallery
|
|
41
|
+
import subprocess
|
|
42
|
+
|
|
43
|
+
# import shlex
|
|
44
|
+
|
|
45
|
+
from subprocess import check_output, CalledProcessError
|
|
46
|
+
|
|
47
|
+
os.system('mkdir _static')
|
|
48
|
+
os.system('install -v -D css/custom.css _static/css/custom.css')
|
|
49
|
+
os.system('install -v -D js/expand_toc_tree.js _static/js/expand_toc_tree.js')
|
|
50
|
+
|
|
51
|
+
# If extensions (or modules to document with autodoc) are in another directory,
|
|
52
|
+
# add these directories to sys.path here. If the directory is relative to the
|
|
53
|
+
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
|
54
|
+
sys.path.insert(0, os.path.abspath('sphinx-apidoc'))
|
|
55
|
+
sys.path.insert(0, os.path.abspath('../doc'))
|
|
56
|
+
sys.path.insert(0, os.path.abspath('doc'))
|
|
57
|
+
sys.path.insert(0, os.path.abspath('..'))
|
|
58
|
+
sys.path.insert(0, os.path.abspath('.'))
|
|
59
|
+
|
|
60
|
+
print("Running sphinx-apidoc...")
|
|
61
|
+
|
|
62
|
+
cmd = "sphinx-apidoc --module-first -o " \
|
|
63
|
+
+ os.path.join(os.path.dirname(os.path.abspath(__file__)), '../odetoolbox') \
|
|
64
|
+
+ " " \
|
|
65
|
+
+ os.path.join(os.path.dirname(os.path.abspath(__file__)), '../odetoolbox') # in-source generation of necessary .rst files
|
|
66
|
+
|
|
67
|
+
print("\tcmd = " + str(cmd))
|
|
68
|
+
os.system(cmd)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
#
|
|
72
|
+
# copy static files/assets
|
|
73
|
+
#
|
|
74
|
+
|
|
75
|
+
import fnmatch
|
|
76
|
+
import os
|
|
77
|
+
|
|
78
|
+
static_docs_dir = os.path.dirname(os.path.abspath(__file__))
|
|
79
|
+
print("Searching in: " + str(static_docs_dir))
|
|
80
|
+
sys.path.insert(0, os.path.join(static_docs_dir, "odetoolbox"))
|
|
81
|
+
matches = []
|
|
82
|
+
for root, dirnames, filenames in os.walk(os.path.join(static_docs_dir, "..", "odetoolbox")):
|
|
83
|
+
for filename in fnmatch.filter(filenames, '*.rst'):
|
|
84
|
+
matches.append(os.path.join(root, filename))
|
|
85
|
+
# for filename in fnmatch.filter(filenames, '*.pdf'):
|
|
86
|
+
# matches.append(os.path.join(root, filename))
|
|
87
|
+
# for filename in fnmatch.filter(filenames, '*.png'):
|
|
88
|
+
# matches.append(os.path.join(root, filename))
|
|
89
|
+
print("Matches:")
|
|
90
|
+
print(matches)
|
|
91
|
+
|
|
92
|
+
#os.system("find ../odetoolbox")
|
|
93
|
+
|
|
94
|
+
for fn in matches:
|
|
95
|
+
fn_from = fn
|
|
96
|
+
fn_to = os.path.join(static_docs_dir, fn[len(static_docs_dir)+4:])
|
|
97
|
+
print("From " + fn_from + " to " + fn_to)
|
|
98
|
+
os.system('install -v -D ' + fn_from + " " + fn_to)
|
|
99
|
+
#os.system('for i in `find .. -name "*.rst"` ; do if [[ ${i} != *"sphinx-apidoc"* ]] ; then install -v -D ${i} ${i/\.\.\//}; fi ; done')
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
# The master toctree document.
|
|
103
|
+
master_doc = "index"
|
|
104
|
+
|
|
105
|
+
source_suffix = ['.rst']
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
# -- General configuration ------------------------------------------------
|
|
109
|
+
|
|
110
|
+
extensions = [
|
|
111
|
+
'sphinx.ext.autodoc',
|
|
112
|
+
'sphinx.ext.autosectionlabel',
|
|
113
|
+
'sphinx.ext.napoleon',
|
|
114
|
+
'sphinx.ext.autosummary',
|
|
115
|
+
'sphinx.ext.doctest',
|
|
116
|
+
'sphinx.ext.intersphinx',
|
|
117
|
+
'sphinx.ext.todo',
|
|
118
|
+
'sphinx.ext.coverage',
|
|
119
|
+
'sphinx.ext.mathjax'
|
|
120
|
+
]
|
|
121
|
+
|
|
122
|
+
autodoc_default_flags = ['private-members', 'show-inheritance']
|
|
123
|
+
|
|
124
|
+
### show only __init__() and __str__() methods
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
mathjax_path = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
|
|
128
|
+
|
|
129
|
+
# Add any paths that contain templates here, relative to this directory.
|
|
130
|
+
templates_path = ['_templates']
|
|
131
|
+
|
|
132
|
+
# The suffix(es) of source filenames.
|
|
133
|
+
# You can specify multiple suffix as a list of string:
|
|
134
|
+
#
|
|
135
|
+
# source_suffix = ['.rst', '.md']
|
|
136
|
+
# source_suffix = '.rst'
|
|
137
|
+
|
|
138
|
+
# General information about the project.
|
|
139
|
+
project = u'ode-toolbox'
|
|
140
|
+
copyright = u'2004, nest-simulator'
|
|
141
|
+
author = u'nest-simulator'
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
# The version info for the project you're documenting, acts as replacement for
|
|
145
|
+
# |version| and |release|, also used in various other places throughout the
|
|
146
|
+
# built documents.
|
|
147
|
+
#
|
|
148
|
+
# The short X.Y version.
|
|
149
|
+
version = '2.1'
|
|
150
|
+
# The full version, including alpha/beta/rc tags
|
|
151
|
+
release = '2.1'
|
|
152
|
+
# The language for content autogenerated by Sphinx. Refer to documentation
|
|
153
|
+
# for a list of supported languages.
|
|
154
|
+
#
|
|
155
|
+
# This is also used if you do content translation via gettext catalogs.
|
|
156
|
+
# Usually you set "language" from the command line for these cases.
|
|
157
|
+
language = None
|
|
158
|
+
|
|
159
|
+
# List of patterns, relative to source directory, that match files and
|
|
160
|
+
# directories to ignore when looking for source files.
|
|
161
|
+
# This patterns also effect to html_static_path and html_extra_path
|
|
162
|
+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
|
163
|
+
|
|
164
|
+
# The name of the Pygments (syntax highlighting) style to use.
|
|
165
|
+
pygments_style = 'manni'
|
|
166
|
+
|
|
167
|
+
# If true, `todo` and `todoList` produce output, else they produce nothing.
|
|
168
|
+
todo_include_todos = False
|
|
169
|
+
|
|
170
|
+
# add numbered figure link
|
|
171
|
+
numfig = True
|
|
172
|
+
|
|
173
|
+
numfig_secnum_depth = (2)
|
|
174
|
+
numfig_format = {'figure': 'Figure %s', 'table': 'Table %s',
|
|
175
|
+
'code-block': 'Code Block %s'}
|
|
176
|
+
# -- Options for HTML output ----------------------------------------------
|
|
177
|
+
|
|
178
|
+
# The theme to use for HTML and HTML Help pages. See the documentation for
|
|
179
|
+
# a list of builtin themes.
|
|
180
|
+
|
|
181
|
+
html_theme = "sphinx_rtd_theme"
|
|
182
|
+
html_title = "ODE-toolbox"
|
|
183
|
+
|
|
184
|
+
# Theme options are theme-specific and customize the look and feel of a theme
|
|
185
|
+
# further. For a list of options available for each theme, see the
|
|
186
|
+
# documentation.
|
|
187
|
+
|
|
188
|
+
html_theme_options = {
|
|
189
|
+
'logo_only': True,
|
|
190
|
+
'navigation_depth': 1,
|
|
191
|
+
'collapse_navigation': False,
|
|
192
|
+
'globaltoc_collapse': True,
|
|
193
|
+
'globaltoc_maxdepth': 1
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
html_logo = "https://raw.githubusercontent.com/nest/ode-toolbox/master/doc/fig/ode-toolbox-logo.png"
|
|
198
|
+
|
|
199
|
+
# Add any paths that contain custom static files (such as style sheets) here,
|
|
200
|
+
# relative to this directory. They are copied after the builtin static files,
|
|
201
|
+
# so a file named "default.css" will overwrite the builtin "default.css".
|
|
202
|
+
html_static_path = ['css', 'fig', 'js', '_static']
|
|
203
|
+
|
|
204
|
+
# These paths are either relative to html_static_path
|
|
205
|
+
# or fully qualified paths (eg. https://...)
|
|
206
|
+
html_css_files = [
|
|
207
|
+
'css/custom.css'
|
|
208
|
+
]
|
|
209
|
+
|
|
210
|
+
html_js_files = [
|
|
211
|
+
'js/expand_toc_tree.js'
|
|
212
|
+
]
|
|
213
|
+
|
|
214
|
+
# -- Options for HTMLHelp output ------------------------------------------
|
|
215
|
+
|
|
216
|
+
# Output file base name for HTML help builder.
|
|
217
|
+
htmlhelp_basename = 'ode-toolbox-doc'
|
|
218
|
+
|
|
219
|
+
html_show_sphinx = False
|
|
220
|
+
html_show_copyright = False
|
|
221
|
+
|
|
222
|
+
# This way works for ReadTheDocs
|
|
223
|
+
# With this local 'make html' is broken!
|
|
224
|
+
github_doc_root = ''
|
|
225
|
+
|
|
226
|
+
intersphinx_mapping = {'https://docs.python.org/': None}
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
def skip(app, what, name, obj, would_skip, options):
|
|
230
|
+
if name in ["__init__", "__str__"]:
|
|
231
|
+
return False
|
|
232
|
+
return would_skip
|
|
233
|
+
|
|
234
|
+
def setup(app):
|
|
235
|
+
app.connect("autodoc-skip-member", skip)
|
|
236
|
+
|
|
237
|
+
# -- Options for LaTeX output ---------------------------------------------
|
|
238
|
+
|
|
239
|
+
latex_elements = {
|
|
240
|
+
# The paper size ('letterpaper' or 'a4paper').
|
|
241
|
+
#
|
|
242
|
+
# 'papersize': 'letterpaper',
|
|
243
|
+
|
|
244
|
+
# The font size ('10pt', '11pt' or '12pt').
|
|
245
|
+
#
|
|
246
|
+
# 'pointsize': '10pt',
|
|
247
|
+
|
|
248
|
+
# Additional stuff for the LaTeX preamble.
|
|
249
|
+
#
|
|
250
|
+
# 'preamble': '',
|
|
251
|
+
|
|
252
|
+
# Latex figure (float) alignment
|
|
253
|
+
#
|
|
254
|
+
# 'figure_align': 'htbp',
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
# Grouping the document tree into LaTeX files. List of tuples
|
|
258
|
+
# (source start file, target name, title,
|
|
259
|
+
# author, documentclass [howto, manual, or own class]).
|
|
260
|
+
latex_documents = [
|
|
261
|
+
(master_doc, 'ode-toolbox-doc.tex', u'ode-toolbox documentation',
|
|
262
|
+
u'ode-toolbox documentation', 'manual'),
|
|
263
|
+
]
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
# -- Options for manual page output ---------------------------------------
|
|
267
|
+
|
|
268
|
+
# One entry per manual page. List of tuples
|
|
269
|
+
# (source start file, name, description, authors, manual section).
|
|
270
|
+
man_pages = [
|
|
271
|
+
(master_doc, 'ode-toolbox-doc', u'ode-toolbox documentation',
|
|
272
|
+
[author], 1)
|
|
273
|
+
]
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
# -- Options for Texinfo output -------------------------------------------
|
|
277
|
+
|
|
278
|
+
# Grouping the document tree into Texinfo files. List of tuples
|
|
279
|
+
# (source start file, target name, title, author,
|
|
280
|
+
# dir menu entry, description, category)
|
|
281
|
+
texinfo_documents = [
|
|
282
|
+
(master_doc, 'ode-toolbox-doc', u'ode-toolbox documentation',
|
|
283
|
+
author, 'ode-toolbox-doc', 'ode-toolbox documentation',
|
|
284
|
+
'Miscellaneous'),
|
|
285
|
+
]
|
|
286
|
+
|
|
287
|
+
# -- Options for readthedocs ----------------------------------------------
|
|
288
|
+
# on_rtd = os.environ.get('READTHEDOCS') == 'True'
|
|
289
|
+
# if on_rtd:
|
|
290
|
+
# html_theme = 'alabaster'
|
|
291
|
+
# else:
|
|
292
|
+
# html_theme = 'nat'
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
.keep-us-sustainable {
|
|
2
|
+
background-color: #272525;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
t.rst-content tt.literal, .rst-content tt.literal, .rst-content code.literal {
|
|
6
|
+
color: #f63;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.wy-side-nav-search {
|
|
10
|
+
background: linear-gradient(45deg, #fff, #eee);
|
|
11
|
+
border-bottom: 1px solid #e1e4e5;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.wy-side-nav-search .version {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.wy-side-nav-search input[type=text] {
|
|
19
|
+
border-color: #f63;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.wy-nav-side {
|
|
23
|
+
background: linear-gradient(90deg, #fff, #eee);
|
|
24
|
+
color: #888;
|
|
25
|
+
border-right: 1px solid #e1e4e5;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.wy-menu-vertical a,
|
|
29
|
+
.wy-menu-vertical a:visited {
|
|
30
|
+
color: #444;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.wy-menu-vertical a:hover {
|
|
34
|
+
color: #aaa;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.wy-menu-vertical header, .wy-menu-vertical p.caption {
|
|
38
|
+
background-color: #c1c1c1;
|
|
39
|
+
color: #6f6f6f;
|
|
40
|
+
border-top: 1px solid #aaa;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.wy-menu-vertical li.current a {
|
|
44
|
+
color: #888;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.wy-nav-top {
|
|
48
|
+
display: none;
|
|
49
|
+
background: linear-gradient(90deg, #fff, #eee);;
|
|
50
|
+
color: #888;
|
|
51
|
+
padding: .4045em .809em;
|
|
52
|
+
position: relative;
|
|
53
|
+
line-height: 50px;
|
|
54
|
+
text-align: center;
|
|
55
|
+
font-size: 100%;
|
|
56
|
+
border-bottom: 1px solid #e1e4e5;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.wy-nav-top a {
|
|
60
|
+
color: #f63;
|
|
61
|
+
font-weight: bold;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@media screen and (max-width: 768px) {
|
|
65
|
+
.wy-nav-top {
|
|
66
|
+
display: block;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
video {
|
|
71
|
+
margin-bottom: 20px;
|
|
72
|
+
background-color: lightgrey;
|
|
73
|
+
border: 1px solid lightgrey;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
a:visited {
|
|
77
|
+
color: #f63;
|
|
78
|
+
}
|
|
79
|
+
a {
|
|
80
|
+
color: #f63;
|
|
81
|
+
text-decoration: none;
|
|
82
|
+
background-color: transparent;
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
a:hover {
|
|
87
|
+
color: #f63;
|
|
88
|
+
text-decoration: underline;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
code.descclassname {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.rst-content dl:not(.docutils) dt em[class^='property']{
|
|
96
|
+
display:none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.rst-content pre.literal-block, .rst-content div[class^='highlight'] pre, .rst-content .linenodiv pre {
|
|
100
|
+
line-height: 1.3em;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.rst-content .admonition-title::before {
|
|
104
|
+
display:none;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.rst-content .admonition-title {
|
|
108
|
+
background: #ffae18;
|
|
109
|
+
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.rst-content .admonition {
|
|
113
|
+
background: #e0e0e0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* override table width restrictions */
|
|
117
|
+
@media screen and (min-width: 767px) {
|
|
118
|
+
.wy-table-responsive table td {
|
|
119
|
+
/* !important prevents the common CSS stylesheets from overriding
|
|
120
|
+
this as on RTD they are loaded after this stylesheet */
|
|
121
|
+
white-space: normal !important;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.wy-table-responsive {
|
|
125
|
+
overflow: visible !important;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.bigcenterlink {
|
|
130
|
+
text-align: center;
|
|
131
|
+
font-size: 125%;
|
|
132
|
+
margin-bottom: 2em;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.bigcenterlink code {
|
|
136
|
+
padding: 1em;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
tr.row-odd {
|
|
140
|
+
background-color: #FFFFFF !important;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
figure {
|
|
144
|
+
margin-bottom: 24px !important;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.toctree-expand {
|
|
148
|
+
display: none !important;
|
|
149
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
.highlight .hll { background-color: #ffffcc }
|
|
2
|
+
.highlight { background: #f0f3f3; }
|
|
3
|
+
.highlight .c { color: #0099FF; font-style: italic } /* Comment */
|
|
4
|
+
.highlight .err { color: #AA0000; background-color: #FFAAAA } /* Error */
|
|
5
|
+
.highlight .k { color: #006699; font-weight: bold } /* Keyword */
|
|
6
|
+
.highlight .o { color: #555555 } /* Operator */
|
|
7
|
+
.highlight .ch { color: #0099FF; font-style: italic } /* Comment.Hashbang */
|
|
8
|
+
.highlight .cm { color: #0099FF; font-style: italic } /* Comment.Multiline */
|
|
9
|
+
.highlight .cp { color: #009999 } /* Comment.Preproc */
|
|
10
|
+
.highlight .cpf { color: #0099FF; font-style: italic } /* Comment.PreprocFile */
|
|
11
|
+
.highlight .c1 { color: #0099FF; font-style: italic } /* Comment.Single */
|
|
12
|
+
.highlight .cs { color: #0099FF; font-weight: bold; font-style: italic } /* Comment.Special */
|
|
13
|
+
.highlight .gd { background-color: #FFCCCC; border: 1px solid #CC0000 } /* Generic.Deleted */
|
|
14
|
+
.highlight .ge { font-style: italic } /* Generic.Emph */
|
|
15
|
+
.highlight .gr { color: #FF0000 } /* Generic.Error */
|
|
16
|
+
.highlight .gh { color: #003300; font-weight: bold } /* Generic.Heading */
|
|
17
|
+
.highlight .gi { background-color: #CCFFCC; border: 1px solid #00CC00 } /* Generic.Inserted */
|
|
18
|
+
.highlight .go { color: #AAAAAA } /* Generic.Output */
|
|
19
|
+
.highlight .gp { color: #000099; font-weight: bold } /* Generic.Prompt */
|
|
20
|
+
.highlight .gs { font-weight: bold } /* Generic.Strong */
|
|
21
|
+
.highlight .gu { color: #003300; font-weight: bold } /* Generic.Subheading */
|
|
22
|
+
.highlight .gt { color: #99CC66 } /* Generic.Traceback */
|
|
23
|
+
.highlight .kc { color: #006699; font-weight: bold } /* Keyword.Constant */
|
|
24
|
+
.highlight .kd { color: #006699; font-weight: bold } /* Keyword.Declaration */
|
|
25
|
+
.highlight .kn { color: #006699; font-weight: bold } /* Keyword.Namespace */
|
|
26
|
+
.highlight .kp { color: #006699 } /* Keyword.Pseudo */
|
|
27
|
+
.highlight .kr { color: #006699; font-weight: bold } /* Keyword.Reserved */
|
|
28
|
+
.highlight .kt { color: #007788; font-weight: bold } /* Keyword.Type */
|
|
29
|
+
.highlight .m { color: #FF6600 } /* Literal.Number */
|
|
30
|
+
.highlight .s { color: #CC3300 } /* Literal.String */
|
|
31
|
+
.highlight .na { color: #330099 } /* Name.Attribute */
|
|
32
|
+
.highlight .nb { color: #336666 } /* Name.Builtin */
|
|
33
|
+
.highlight .nc { color: #00AA88; font-weight: bold } /* Name.Class */
|
|
34
|
+
.highlight .no { color: #336600 } /* Name.Constant */
|
|
35
|
+
.highlight .nd { color: #9999FF } /* Name.Decorator */
|
|
36
|
+
.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
|
|
37
|
+
.highlight .ne { color: #CC0000; font-weight: bold } /* Name.Exception */
|
|
38
|
+
.highlight .nf { color: #CC00FF } /* Name.Function */
|
|
39
|
+
.highlight .nl { color: #9999FF } /* Name.Label */
|
|
40
|
+
.highlight .nn { color: #FF6633; font-weight: bold } /* Name.Namespace */
|
|
41
|
+
.highlight .nt { color: #330099; font-weight: bold } /* Name.Tag */
|
|
42
|
+
.highlight .nv { color: #003333 } /* Name.Variable */
|
|
43
|
+
.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
|
|
44
|
+
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
|
|
45
|
+
.highlight .mb { color: #FF6600 } /* Literal.Number.Bin */
|
|
46
|
+
.highlight .mf { color: #FF6600 } /* Literal.Number.Float */
|
|
47
|
+
.highlight .mh { color: #FF6600 } /* Literal.Number.Hex */
|
|
48
|
+
.highlight .mi { color: #FF6600 } /* Literal.Number.Integer */
|
|
49
|
+
.highlight .mo { color: #FF6600 } /* Literal.Number.Oct */
|
|
50
|
+
.highlight .sa { color: #CC3300 } /* Literal.String.Affix */
|
|
51
|
+
.highlight .sb { color: #CC3300 } /* Literal.String.Backtick */
|
|
52
|
+
.highlight .sc { color: #CC3300 } /* Literal.String.Char */
|
|
53
|
+
.highlight .dl { color: #CC3300 } /* Literal.String.Delimiter */
|
|
54
|
+
.highlight .sd { color: #CC3300; font-style: italic } /* Literal.String.Doc */
|
|
55
|
+
.highlight .s2 { color: #CC3300 } /* Literal.String.Double */
|
|
56
|
+
.highlight .se { color: #CC3300; font-weight: bold } /* Literal.String.Escape */
|
|
57
|
+
.highlight .sh { color: #CC3300 } /* Literal.String.Heredoc */
|
|
58
|
+
.highlight .si { color: #AA0000 } /* Literal.String.Interpol */
|
|
59
|
+
.highlight .sx { color: #CC3300 } /* Literal.String.Other */
|
|
60
|
+
.highlight .sr { color: #33AAAA } /* Literal.String.Regex */
|
|
61
|
+
.highlight .s1 { color: #CC3300 } /* Literal.String.Single */
|
|
62
|
+
.highlight .ss { color: #FFCC33 } /* Literal.String.Symbol */
|
|
63
|
+
.highlight .bp { color: #336666 } /* Name.Builtin.Pseudo */
|
|
64
|
+
.highlight .fm { color: #CC00FF } /* Name.Function.Magic */
|
|
65
|
+
.highlight .vc { color: #003333 } /* Name.Variable.Class */
|
|
66
|
+
.highlight .vg { color: #003333 } /* Name.Variable.Global */
|
|
67
|
+
.highlight .vi { color: #003333 } /* Name.Variable.Instance */
|
|
68
|
+
.highlight .vm { color: #003333 } /* Name.Variable.Magic */
|
|
69
|
+
.highlight .il { color: #FF6600 } /* Literal.Number.Integer.Long */
|
|
70
|
+
|