Skip to content

Commit e4dbbaa

Browse files
committed
release 0.6.4
1 parent 9e4127d commit e4dbbaa

File tree

4 files changed

+56
-77
lines changed

4 files changed

+56
-77
lines changed

Changelog.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
# Changelog
22

3-
## 0.6.4 ()
3+
## 0.6.4 (January, 2018)
44

5-
- Bugfix #274: `initial` has not been passed to super in `HierachicalMachine.add_model` (thanks @illes)
5+
Release 0.6.4 is a minor release and contains a new feature and two bug fixes related to `HierachicalMachine`:
6+
7+
- Bugfix #274: `initial` has not been passed to super in `HierachicalMachine.add_model` (thanks to @illes).
68
- Feature #275: `HierarchicalMachine.add_states` now supports keyword `parent` to be a `NestedState` or a string.
7-
- Bugfix #278: `NestedState` has not been exited correctly during reflexive triggering (thanks @hrsmanian)
9+
- Bugfix #278: `NestedState` has not been exited correctly during reflexive triggering (thanks to @hrsmanian).
810

911
## 0.6.3 (November, 2017)
1012

1113
Release 0.6.3 is a minor release and contains a new feature and two bug fixes:
1214

13-
- Bugfix #268: `Machine.add_ordered_transitions` changed states' order if `initial` is not the first or last state (thanks to @janekbaraniewski)
14-
- Bugfix #265: Renamed `HierarchicalMachine.to` to `to_state` to prevent warnings when HSM is used as a model
15-
- Feature #266: Introduce `Machine.get_transitions` to get a list of transitions for alteration.
15+
- Bugfix #268: `Machine.add_ordered_transitions` changed states' order if `initial` is not the first or last state (thanks to @janekbaraniewski).
16+
- Bugfix #265: Renamed `HierarchicalMachine.to` to `to_state` to prevent warnings when HSM is used as a model.
17+
- Feature #266: Introduce `Machine.get_transitions` to get a list of transitions for alteration (thanks to @Synss).
1618

1719
## 0.6.2 (November, 2017)
1820

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Coverage Status](https://coveralls.io/repos/pytransitions/transitions/badge.svg?branch=master&service=github)](https://coveralls.io/github/pytransitions/transitions?branch=master)
55
[![Pylint](https://img.shields.io/badge/pylint-9.71%2F10-green.svg)](https://github.com/pytransitions/transitions)
66
[![PyPi](https://img.shields.io/pypi/v/transitions.svg)](https://pypi.org/project/transitions)
7-
[![GitHub commits](https://img.shields.io/github/commits-since/pytransitions/transitions/0.6.3.svg)](https://github.com/pytransitions/transitions/compare/0.6.3...master)
7+
[![GitHub commits](https://img.shields.io/github/commits-since/pytransitions/transitions/0.6.4.svg)](https://github.com/pytransitions/transitions/compare/0.6.4...master)
88
[![License](https://img.shields.io/github/license/pytransitions/transitions.svg)](LICENSE)
99
<!--[![Name](Image)](Link)-->
1010

examples/Graph MIxin Demo Nested.ipynb

+15-30
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"cell_type": "code",
55
"execution_count": 1,
66
"metadata": {
7-
"collapsed": false
7+
"collapsed": true
88
},
99
"outputs": [],
1010
"source": [
11-
"import os, sys, inspect\n",
11+
"import os, sys, inspect, io\n",
1212
"\n",
1313
"cmd_folder = os.path.realpath(\n",
1414
" os.path.dirname(\n",
@@ -27,18 +27,17 @@
2727
" return False\n",
2828
" def show_graph(self, **kwargs):\n",
2929
" #print(self.get_graph(**kwargs).string())\n",
30-
" self.get_graph(**kwargs).draw('state.png', prog='dot')\n",
31-
" display(Image('state.png')) \n",
30+
" stream = io.BytesIO()\n",
31+
" self.get_graph(**kwargs).draw(stream, prog='dot', format='png')\n",
32+
" display(Image(stream.getvalue())) \n",
3233
"\n",
3334
"GraphMachine = MachineFactory.get_predefined(graph=True, nested=True) "
3435
]
3536
},
3637
{
3738
"cell_type": "code",
3839
"execution_count": 2,
39-
"metadata": {
40-
"collapsed": false
41-
},
40+
"metadata": {},
4241
"outputs": [
4342
{
4443
"data": {
@@ -78,9 +77,7 @@
7877
{
7978
"cell_type": "code",
8079
"execution_count": 3,
81-
"metadata": {
82-
"collapsed": false
83-
},
80+
"metadata": {},
8481
"outputs": [
8582
{
8683
"data": {
@@ -101,9 +98,7 @@
10198
{
10299
"cell_type": "code",
103100
"execution_count": 4,
104-
"metadata": {
105-
"collapsed": false
106-
},
101+
"metadata": {},
107102
"outputs": [
108103
{
109104
"data": {
@@ -124,9 +119,7 @@
124119
{
125120
"cell_type": "code",
126121
"execution_count": 5,
127-
"metadata": {
128-
"collapsed": false
129-
},
122+
"metadata": {},
130123
"outputs": [
131124
{
132125
"data": {
@@ -147,9 +140,7 @@
147140
{
148141
"cell_type": "code",
149142
"execution_count": 6,
150-
"metadata": {
151-
"collapsed": false
152-
},
143+
"metadata": {},
153144
"outputs": [
154145
{
155146
"data": {
@@ -170,9 +161,7 @@
170161
{
171162
"cell_type": "code",
172163
"execution_count": 7,
173-
"metadata": {
174-
"collapsed": false
175-
},
164+
"metadata": {},
176165
"outputs": [
177166
{
178167
"data": {
@@ -192,9 +181,7 @@
192181
{
193182
"cell_type": "code",
194183
"execution_count": 8,
195-
"metadata": {
196-
"collapsed": false
197-
},
184+
"metadata": {},
198185
"outputs": [
199186
{
200187
"data": {
@@ -227,9 +214,7 @@
227214
{
228215
"cell_type": "code",
229216
"execution_count": 9,
230-
"metadata": {
231-
"collapsed": false
232-
},
217+
"metadata": {},
233218
"outputs": [
234219
{
235220
"data": {
@@ -263,9 +248,9 @@
263248
"name": "python",
264249
"nbconvert_exporter": "python",
265250
"pygments_lexer": "ipython2",
266-
"version": "2.7.12"
251+
"version": "2.7.14"
267252
}
268253
},
269254
"nbformat": 4,
270-
"nbformat_minor": 0
255+
"nbformat_minor": 1
271256
}

examples/Graph MIxin Demo.ipynb

+32-40
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)