From a2726fe1cbfa602c23f0b4513fb4b4b1b6daae82 Mon Sep 17 00:00:00 2001 From: Daniel Stonier Date: Wed, 26 May 2021 23:51:59 -0400 Subject: [PATCH] [composites] show ghost states for sequence children Reverts the *new* behaviour introduced in #330 for sequences with memory. This shouldn't have made it into a patch release (surprise factor) and there is some debate on what the best approach is. Refer to the discussion in #328. --- CHANGELOG.rst | 1 + py_trees/composites.py | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index efc7392b..02221fb8 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,7 @@ Release Notes Forthcoming ----------- * [tests] mypy conformance, `#327 `_ +* [composites] show ghost states for sequence children, `#330 `_ (reverts behaviour introduced in `#325 `_) 2.1.5 (2021-05-09) ------------------ diff --git a/py_trees/composites.py b/py_trees/composites.py index 727d55bd..5c096e53 100644 --- a/py_trees/composites.py +++ b/py_trees/composites.py @@ -442,10 +442,6 @@ def tick(self): self.initialise() else: # self.memory is True and status is RUNNING index = self.children.index(self.current_child) - # clear out preceding status' - not actually necessary but helps - # visualise the case of memory vs no memory - for child in itertools.islice(self.children, None, index): - child.stop(common.Status.INVALID) # customised work self.update()