Skip to content

Commit

Permalink
Prepare for v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bjodah committed Aug 18, 2016
1 parent ccaaa70 commit efee6c7
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
v0.6.0
======
- depend on package ``sym`` for symbolic backend

v0.5.3
======
- minor fixes

v0.5.2
======
- from_callback now respects backend paramter (e.g. ``math`` or
Expand Down
102 changes: 102 additions & 0 deletions examples/interactive-plotting.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"import math\n",
"from ipywidgets import interact\n",
"from pyodesys.symbolic import SymbolicSys"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"#from matplotlib.pyplot import plot\n",
"#%matplotlib inline\n",
"\n",
"import gr\n",
"from gr.pygr import plot\n",
"gr.inline()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"def rhs(t, y, p, backend=math):\n",
" return [p[0]*y[1], -p[0]*y[0]]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"odesys = SymbolicSys.from_callback(rhs, 2, 1, backend='symengine')"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"def integrate(alpha):\n",
" t, y, info = odesys.integrate(10, [0, 1], [alpha], integrator='cvode')\n",
" plot(t, y[:, 0])\n",
" plot(t, y[:, 1])"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"interact(integrate, alpha=(.1, 1, 0.1))"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.4.3"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
1 change: 1 addition & 0 deletions pyodesys/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@

from __future__ import absolute_import

from ._release import __version__
from .core import OdeSys
2 changes: 1 addition & 1 deletion scripts/post_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [[ -d "dist/conda-recipe-$VERSION" ]]; then
fi
cp -r conda-recipe/ dist/conda-recipe-$VERSION
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

env ${PKG_UPPER}_RELEASE_VERSION=v$VERSION python setup.py upload_sphinx

# Specific for this project:
Expand Down

0 comments on commit efee6c7

Please sign in to comment.