This is an automated email from the ASF dual-hosted git repository.
johnsd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ctakes.git
The following commit(s) were added to refs/heads/main by this push:
new 706689a Fixed bug with create_relation function
706689a is described below
commit 706689af60ff0bc3c7fb824cf9bf24179d705595
Author: Dennis Johns <[email protected]>
AuthorDate: Mon Feb 3 12:50:17 2025 -0500
Fixed bug with create_relation function
---
.../pbj/ctakes_pbj_py/src/ctakes_pbj/pbj_tools/create_relation.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/ctakes-pbj/src/user/resources/org/apache/ctakes/pbj/ctakes_pbj_py/src/ctakes_pbj/pbj_tools/create_relation.py
b/ctakes-pbj/src/user/resources/org/apache/ctakes/pbj/ctakes_pbj_py/src/ctakes_pbj/pbj_tools/create_relation.py
index 261fab3..74a347d 100644
---
a/ctakes-pbj/src/user/resources/org/apache/ctakes/pbj/ctakes_pbj_py/src/ctakes_pbj/pbj_tools/create_relation.py
+++
b/ctakes-pbj/src/user/resources/org/apache/ctakes/pbj/ctakes_pbj_py/src/ctakes_pbj/pbj_tools/create_relation.py
@@ -4,7 +4,7 @@ from ctakes_pbj.type_system import ctakes_types
def create_relation(cas, relation_type, category, source, target):
relation = relation_type()
relation.category = category
- relation_arg_type = ctakes_types.RelationArgument
+ relation_arg_type = cas.typesystem.get_type(ctakes_types.RelationArgument)
relation.arg1 = relation_arg_type()
relation.arg2 = relation_arg_type()
relation.arg1.argument = source