diff --git a/odxtools/compumethods/linearsegment.py b/odxtools/compumethods/linearsegment.py index b3fabd3b..e61df751 100644 --- a/odxtools/compumethods/linearsegment.py +++ b/odxtools/compumethods/linearsegment.py @@ -38,7 +38,7 @@ def from_compu_scale(scale: CompuScale, *, internal_type: DataType, coeffs = odxrequire(scale.compu_rational_coeffs) offset = coeffs.numerators[0] - factor = coeffs.numerators[1] + factor = 0 if len(coeffs.numerators) == 1 else coeffs.numerators[1] denominator = 1.0 if len(coeffs.denominators) > 0: