From 9981cebaa504f4322324c51666b24227caffc25c Mon Sep 17 00:00:00 2001 From: Paul Saxe Date: Wed, 23 Jul 2025 16:16:54 -0400 Subject: [PATCH] 2025.7.23: Bugfix: options not properly set if the loop is in a subflowchart * The options of the steps in the loop were not set correctly if the loop was in a subflowchart in e.g. a substep step or training step. --- HISTORY.rst | 4 ++++ loop_step/loop.py | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/HISTORY.rst b/HISTORY.rst index 383ebba..be57a5b 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,6 +1,10 @@ ======= History ======= +2025.7.23: Bugfix: options not properly set if the loop is in a subflowchart + * The options of the steps in the loop were not set correctly if the loop was in a + subflowchart in e.g. a substep step or training step. + 2025.5.15: Improved and added to loops over tables * Added a 'between' operator to filter rows of tables. * Ensured the correct types of variables in the rows of a table, fixing an issues diff --git a/loop_step/loop.py b/loop_step/loop.py index 88c9fd8..018be31 100644 --- a/loop_step/loop.py +++ b/loop_step/loop.py @@ -91,6 +91,20 @@ def version(self): """The semantic version of this module.""" return loop_step.__version__ + @property + def all_options(self): + """The complete set of all options.""" + return self._all_options + + @all_options.setter + def all_options(self, value): + self._all_options = value + # and set for the subnodes + node = self.loop_node() + while node is not None and node != self: + node.all_options = value + node = node.next() + @property def iter_format(self): if self._loop_length is None: