Skip to content
Snippets Groups Projects

Allow chains that do not have any steps

Merged Tomasz Bold requested to merge tbold/athena:allow-chains-without-steps into master
All threads resolved!
1 file
+ 5
3
Compare changes
  • Side-by-side
  • Inline
@@ -437,9 +437,11 @@ class Chain(object):
@@ -437,9 +437,11 @@ class Chain(object):
def setSeedsToSequences(self):
def setSeedsToSequences(self):
""" Set the L1 seeds to the menu sequences """
""" Set the L1 seeds to the menu sequences """
# check if the number of seeds is enought for all the seuqences:
# check if the number of seeds is enought for all the seuqences, no action of no steps are configured
max_seq= max(len(step.sequences) for step in self.steps)
if len(self.steps) == 0:
tot_seed=len(self.vseeds)
return
 
max_seq = max(len(step.sequences) for step in self.steps)
 
tot_seed = len(self.vseeds)
if max_seq==tot_seed:
if max_seq==tot_seed:
for step in self.steps:
for step in self.steps:
if len(step.sequences) == 0:
if len(step.sequences) == 0:
Loading