From cb293ffc2907e2f2f7ddae5c8090b502f8a65975 Mon Sep 17 00:00:00 2001 From: Matthias Bernt Date: Mon, 17 Jun 2024 13:58:36 +0200 Subject: [PATCH] really allow in-range validator for txt just enabling the linter https://github.com/galaxyproject/galaxy/pull/18403 was not sufficient --- lib/galaxy/tools/parameters/validation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/tools/parameters/validation.py b/lib/galaxy/tools/parameters/validation.py index cf02d86c56b5..6334fd95f8b8 100644 --- a/lib/galaxy/tools/parameters/validation.py +++ b/lib/galaxy/tools/parameters/validation.py @@ -165,7 +165,7 @@ def __init__(self, message, range_min, range_max, exclude_min=False, exclude_max op1 = "<" if self.exclude_max: op2 = "<" - expression = f"float('{self.min}') {op1} value {op2} float('{self.max}')" + expression = f"float('{self.min}') {op1} float(value) {op2} float('{self.max}')" if message is None: message = f"Value ('%s') must {'not ' if negate == 'true' else ''}fulfill {expression}" super().__init__(message, expression, negate)