def add_jump(self, name, min, max, num, warp=None, var_type=float):
if not isinstance(var_type, type):<EOL><INDENT>if var_type == '<STR_LIT:int>':<EOL><INDENT>var_type = int<EOL><DEDENT>elif var_type == '<STR_LIT:float>':<EOL><INDENT>var_type = float<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>'<EOL>'<STR_LIT>' % (var_type))<EOL><DEDENT><DEDENT>min, max = map(var_type, (min, max))<EOL>num = int(num)<EOL>if not warp:<EOL><INDENT>choices = np.linspace(min, max, num=num, dtype=var_type)<EOL><DEDENT>elif (min >= <NUM_LIT:0>) and warp == '<STR_LIT>':<EOL><INDENT>choices = np.logspace(np.log10(min), np.log10(max), num=num,<EOL>dtype=var_type)<EOL><DEDENT>elif (min <= <NUM_LIT:0>)and warp == '<STR_LIT>':<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>'<EOL>'<STR_LIT>' % (name, warp))<EOL><DEDENT>self.variables[name] = EnumVariable(name, choices.tolist())<EOL>
An integer/float-valued enumerable with `num` items, bounded
        between [`min`, `max`]. Note that the right endpoint of the interval
        includes `max`. This is a wrapper around the add_enum. `jump` can be
        a float or int.