[Question] non inclusive float parameter
Opened this issue · 1 comments
pmatos commented
Is there a way to define a FloatParameter
where the min is not inclusive? For example, a FloatParameter
between 0
and 1
, but different than 0
, i.e. an x
where 0 < x <= 1
?
jansel commented
You could subclass FloatParameter to create such a parameter. An easier way might be way might be to replace (0, 1)
with (sys.float_info.min, 1)
. (A double can't represent any numbers between 0
and sys.float_info.min
so this would be the same as what you are asking for.)