Skip to content

Commit 0a8d2ba

Browse files
committed
The value range of <PHYS-CONSTR> should be defined by the <physical_type> field.
1 parent 9d40155 commit 0a8d2ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

odxtools/dataobjectproperty.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def from_et(et_element: ElementTree.Element,
7272
physical_constr = None
7373
if (physical_constr_elem := et_element.find("PHYS-CONSTR")) is not None:
7474
physical_constr = InternalConstr.from_et(
75-
physical_constr_elem, internal_type=diag_coded_type.base_data_type)
75+
physical_constr_elem, internal_type=physical_type.base_data_type)
7676

7777
return DataObjectProperty(
7878
diag_coded_type=diag_coded_type,

0 commit comments

Comments
 (0)