diff --git a/frappy_psi/sea.py b/frappy_psi/sea.py index e2e7fae..10aa4ad 100644 --- a/frappy_psi/sea.py +++ b/frappy_psi/sea.py @@ -721,9 +721,10 @@ class SeaModule(Module): sublist = result.get('.') if sublist is None: return False - if len(sub) == 1 and 'kids' in paramdesc: # direct kid - # do not take main node of a tree + if len(sub) > 1 or 'kids' in paramdesc: + # avoid params from subtrees return False + # this is a top paramerter without kids sublist.append(paramdesc) return True