Skip to content

Commit efee6c7

Browse files
committedAug 18, 2016
Prepare for v0.6.0
1 parent ccaaa70 commit efee6c7

File tree

4 files changed

+112
-1
lines changed

4 files changed

+112
-1
lines changed
 

‎CHANGES.rst

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
v0.6.0
2+
======
3+
- depend on package ``sym`` for symbolic backend
4+
5+
v0.5.3
6+
======
7+
- minor fixes
8+
19
v0.5.2
210
======
311
- from_callback now respects backend paramter (e.g. ``math`` or

‎examples/interactive-plotting.ipynb

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {
7+
"collapsed": false
8+
},
9+
"outputs": [],
10+
"source": [
11+
"import math\n",
12+
"from ipywidgets import interact\n",
13+
"from pyodesys.symbolic import SymbolicSys"
14+
]
15+
},
16+
{
17+
"cell_type": "code",
18+
"execution_count": null,
19+
"metadata": {
20+
"collapsed": true
21+
},
22+
"outputs": [],
23+
"source": [
24+
"#from matplotlib.pyplot import plot\n",
25+
"#%matplotlib inline\n",
26+
"\n",
27+
"import gr\n",
28+
"from gr.pygr import plot\n",
29+
"gr.inline()"
30+
]
31+
},
32+
{
33+
"cell_type": "code",
34+
"execution_count": null,
35+
"metadata": {
36+
"collapsed": false
37+
},
38+
"outputs": [],
39+
"source": [
40+
"def rhs(t, y, p, backend=math):\n",
41+
" return [p[0]*y[1], -p[0]*y[0]]"
42+
]
43+
},
44+
{
45+
"cell_type": "code",
46+
"execution_count": null,
47+
"metadata": {
48+
"collapsed": false
49+
},
50+
"outputs": [],
51+
"source": [
52+
"odesys = SymbolicSys.from_callback(rhs, 2, 1, backend='symengine')"
53+
]
54+
},
55+
{
56+
"cell_type": "code",
57+
"execution_count": null,
58+
"metadata": {
59+
"collapsed": false
60+
},
61+
"outputs": [],
62+
"source": [
63+
"def integrate(alpha):\n",
64+
" t, y, info = odesys.integrate(10, [0, 1], [alpha], integrator='cvode')\n",
65+
" plot(t, y[:, 0])\n",
66+
" plot(t, y[:, 1])"
67+
]
68+
},
69+
{
70+
"cell_type": "code",
71+
"execution_count": null,
72+
"metadata": {
73+
"collapsed": false
74+
},
75+
"outputs": [],
76+
"source": [
77+
"interact(integrate, alpha=(.1, 1, 0.1))"
78+
]
79+
}
80+
],
81+
"metadata": {
82+
"kernelspec": {
83+
"display_name": "Python 3",
84+
"language": "python",
85+
"name": "python3"
86+
},
87+
"language_info": {
88+
"codemirror_mode": {
89+
"name": "ipython",
90+
"version": 3
91+
},
92+
"file_extension": ".py",
93+
"mimetype": "text/x-python",
94+
"name": "python",
95+
"nbconvert_exporter": "python",
96+
"pygments_lexer": "ipython3",
97+
"version": "3.4.3"
98+
}
99+
},
100+
"nbformat": 4,
101+
"nbformat_minor": 0
102+
}

‎pyodesys/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@
1313

1414
from __future__ import absolute_import
1515

16+
from ._release import __version__
1617
from .core import OdeSys

‎scripts/post_release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if [[ -d "dist/conda-recipe-$VERSION" ]]; then
1414
fi
1515
cp -r conda-recipe/ dist/conda-recipe-$VERSION
1616
sed -i -E -e "s/version:(.+)/version: $VERSION/" -e "s/path:(.+)/fn: $PKG-$VERSION.tar.gz\n url: https:\/\/github.com\/$GITHUBUSER\/$PKG\/releases\/download\/v$VERSION\/$PKG-$VERSION.tar.gz\n md5: $MD5/" dist/conda-recipe-$VERSION/meta.yaml
17-
17+
1818
env ${PKG_UPPER}_RELEASE_VERSION=v$VERSION python setup.py upload_sphinx
1919

2020
# Specific for this project:

0 commit comments

Comments
 (0)