From 9e211aa581b83e989a97f53ebb51ab45a76130f9 Mon Sep 17 00:00:00 2001 From: rfeistenauer Date: Thu, 5 Nov 2020 14:55:38 +0100 Subject: [PATCH] Fixes ca not active after reactivation --- README.md | 3 +++ cellular_automaton/automaton.py | 1 + setup.py | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 53b6e9b..71feeac 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,9 @@ There ist still quite some work to do. And for all others, don't hesitate to open issues when you have problems! ## Changelog +#### 1.0.7 +- Fixes automaton ont active on reactivation + #### 1.0.6 - Fixes reactivation not redrawing all cells diff --git a/cellular_automaton/automaton.py b/cellular_automaton/automaton.py index c8ac115..b0f7b05 100644 --- a/cellular_automaton/automaton.py +++ b/cellular_automaton/automaton.py @@ -96,6 +96,7 @@ class CellularAutomaton(CellularAutomatonCreator, abc.ABC): for cell in self._current_state.values(): cell.is_active = True cell.is_dirty = True + self._active = True active = property(is_active) diff --git a/setup.py b/setup.py index 10761a2..3b3c553 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ with open('README.md') as f: setup( name="cellular_automaton", - version="1.0.6", + version="1.0.7", author="Richard Feistenauer", author_email="r.feistenauer@web.de", packages=find_packages(exclude=('tests', 'docs', 'examples')),