From 8ef5bd98896d25772dd1bee89ae3e1ed8cdc3749 Mon Sep 17 00:00:00 2001 From: Vadym Date: Mon, 18 Mar 2024 02:06:46 +0200 Subject: [PATCH] Range.min is always skipped (#23) --- pyhon/parameter/range.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyhon/parameter/range.py b/pyhon/parameter/range.py index fa00de0..786e553 100644 --- a/pyhon/parameter/range.py +++ b/pyhon/parameter/range.py @@ -71,7 +71,7 @@ class HonParameterRange(HonParameter): def values(self) -> List[str]: result = [] i = self.min - while i < self.max: - i += self.step + while i <= self.max: result.append(str(i)) + i += self.step return result