container = subtree.find(xml_tag)
if container is None:
return None
- if len(container.getchildren()) != LANES_PER_FLOWCELL:
+ if len(container.getchildren()) > LANES_PER_FLOWCELL:
raise RuntimeError('GERALD config.xml file changed')
lanes = [x.tag.split('_')[1] for x in container.getchildren()]
index = lanes.index(self._key)