Skip to content
Snippets Groups Projects
Commit dd3b19cc authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch 'allow-chains-without-steps' into 'master'

Allow chains that do not have any steps

See merge request atlas/athena!27167
parents 352ae0ea f485325f
No related branches found
No related tags found
No related merge requests found
......@@ -439,9 +439,11 @@ class Chain(object):
def setSeedsToSequences(self):
""" Set the L1 seeds to the menu sequences """
# check if the number of seeds is enought for all the seuqences:
max_seq= max(len(step.sequences) for step in self.steps)
tot_seed=len(self.vseeds)
# check if the number of seeds is enought for all the seuqences, no action of no steps are configured
if len(self.steps) == 0:
return
max_seq = max(len(step.sequences) for step in self.steps)
tot_seed = len(self.vseeds)
if max_seq==tot_seed:
for step in self.steps:
if len(step.sequences) == 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment