Commit 86460876 authored by François Henrotte's avatar François Henrotte

added function to get the range (min,max) of a Onelab parameter

parent 1a185292
......@@ -304,6 +304,11 @@ class client :
self._getParameter(param, warn_if_not_found)
return param.choices
def getNumberRange(self, name, warn_if_not_found=True):
param = _parameter('number', name=name)
self._getParameter(param, warn_if_not_found)
return [param.values[0] if len(param.values) else 0, param.min, param.max]
def show(self, name) :
if not self.socket or not name:
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment