mercedes-benz / odxtools

odxtools is a collection of utilities to interact with the diagnostic functionality of automotive electronic control units using python
MIT License
171 stars 70 forks source link

linearsegment.from_compu_scale: factor value should be equal to 0 if only one numerator is specified #333

Closed nada-ben-ali closed 2 weeks ago

nada-ben-ali commented 2 weeks ago

The current implementation shows "IndexError: list index out of range" when the 'coeffs.numerators' list contains only one value, so, in this case, the factor should take the value 0.

CLA-Mercedes-Benz commented 2 weeks ago

CLA assistant check
All committers have signed the CLA.

andlaus commented 2 weeks ago

thanks. I'm not completely sure if your input file is valid, but I'm happy with the patch :)