From 385480a8cceada52c57630f0f11a3e6732cf343f Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Fri, 6 Jun 2025 12:15:48 +0200 Subject: [PATCH] SEA: again fixing paramFilter --- frappy_psi/sea.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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