From a289244d50b51d0f0870d40e30d800d31087074b Mon Sep 17 00:00:00 2001 From: "James A. Bednar" Date: Fri, 22 Sep 2023 23:59:29 -0500 Subject: [PATCH] Switched from mathematical range notation to Python expr --- param/parameterized.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/param/parameterized.py b/param/parameterized.py index 7fe6fcc6..3622cfbc 100644 --- a/param/parameterized.py +++ b/param/parameterized.py @@ -3635,9 +3635,10 @@ def _get_param_repr(key, val, p, vallen=30, doclen=40): # Numeric bounds use ( and [ to indicate exclusive and inclusive bl,bu = p.bounds il,iu = p.inclusive_bounds - lb = ('[' if il else '(') + ('-∞' if bl is None else str(bl)) - ub = ('∞' if bu is None else str(bu)) + (']' if iu else ')') - range_ = lb + ', ' + ub + + lb = '' if bl is None else ('>=' if il else '>') + str(bl) + ub = '' if bu is None else ('<=' if iu else '<') + str(bu) + range_ = lb + (', ' if lb and bu else '') + ub else: range_ = repr(p.bounds) elif hasattr(p, 'objects') and p.objects: