From 042eebcd5922e8f172432982640bf60375d6eead Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Fri, 1 Mar 2024 23:15:38 +0100 Subject: [PATCH] consider review comments thanks to [at]kayoub5 for the finds. Signed-off-by: Andreas Lauser Signed-off-by: Michael Hahn --- odxtools/compumethods/compuscale.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odxtools/compumethods/compuscale.py b/odxtools/compumethods/compuscale.py index bb8028bd..5400cdbf 100644 --- a/odxtools/compumethods/compuscale.py +++ b/odxtools/compumethods/compuscale.py @@ -81,8 +81,8 @@ def from_et(et_element: ElementTree.Element, doc_frags: List[OdxDocFragment], *, def applies(self, internal_value: AtomicOdxType) -> bool: if self.lower_limit is None and self.upper_limit is None: - odxraise("No limits specified for compu scale") - return False + # Everything is allowed: No limits have been specified + return True elif self.upper_limit is None: # no upper limit has been specified. the spec says that # the value specified by the lower limit is the only one