From 691bea32f91c3c94fc2bf9bdd2829c894c834f96 Mon Sep 17 00:00:00 2001 From: akikaede Date: Wed, 27 Mar 2024 13:45:16 +0800 Subject: [PATCH] fix: COMPU-DEFAULT-VALUE parsing issue by modifying its hierarchical level --- odxtools/compumethods/createanycompumethod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odxtools/compumethods/createanycompumethod.py b/odxtools/compumethods/createanycompumethod.py index 24c9639f..0f19522c 100644 --- a/odxtools/compumethods/createanycompumethod.py +++ b/odxtools/compumethods/createanycompumethod.py @@ -137,7 +137,7 @@ def create_any_compu_method_from_et(et_element: ElementTree.Element, scale_elem, doc_frags, internal_type=internal_type, physical_type=physical_type)) compu_default_value = create_compu_default_value( - et_element.find("COMPU-DEFAULT-VALUE"), doc_frags, **kwargs) + et_element.find("COMPU-INTERNAL-TO-PHYS/COMPU-DEFAULT-VALUE"), doc_frags, **kwargs) return TexttableCompuMethod( internal_to_phys=internal_to_phys,