From 0a8d2baeceb8adbb2ac76295e9751324bf60c807 Mon Sep 17 00:00:00 2001 From: QWander <9032140@qq.com> Date: Mon, 15 Jan 2024 22:04:42 +0800 Subject: [PATCH] The value range of should be defined by the field. --- odxtools/dataobjectproperty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odxtools/dataobjectproperty.py b/odxtools/dataobjectproperty.py index d52633a6..706e661c 100644 --- a/odxtools/dataobjectproperty.py +++ b/odxtools/dataobjectproperty.py @@ -72,7 +72,7 @@ def from_et(et_element: ElementTree.Element, physical_constr = None if (physical_constr_elem := et_element.find("PHYS-CONSTR")) is not None: physical_constr = InternalConstr.from_et( - physical_constr_elem, internal_type=diag_coded_type.base_data_type) + physical_constr_elem, internal_type=physical_type.base_data_type) return DataObjectProperty( diag_coded_type=diag_coded_type,