From 1f2a41bd17c0fffedaebfd6ff2e3300dbf77cd47 Mon Sep 17 00:00:00 2001 From: Jelte van Boheemen Date: Wed, 24 Apr 2024 12:51:58 +0200 Subject: [PATCH] Resolve bug in xenx --- setup.py | 2 +- src/sastadev/xenx.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 9dd0c30..a37f8c4 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setup( name='sastadev', - version='0.1.4', + version='0.1.5', description='Linguistic functions for SASTA tool', long_description=long_description, long_description_content_type='text/markdown', diff --git a/src/sastadev/xenx.py b/src/sastadev/xenx.py index c014ed5..dda06bd 100644 --- a/src/sastadev/xenx.py +++ b/src/sastadev/xenx.py @@ -55,6 +55,6 @@ def xenx(tree: SynTree) -> List[SynTree]: include = include and (childptcat == firstptcat) and childptcat not in clausecats #print('include=', include) #print('final: include=', include) - if include: + if include and crdresult is not None: results.append(crdresult) return results