First cut of user CLI API 

This is only for motor limits etc. such as (10, -10), but added for completeness

On Dec 5, 2014, at 12:14 AM, Thomas A Caswell <notifications@github.com<mailto:notifications@github.com>> wrote:


In ophyd/userapi/cli_api.py:

> +  if on:
> +    print("\x1b[?25h\n")
> +  else:
> +    print("\x1b[?25l\n")
> +
> +def _ensure_positioner_pair(func):
> +  def inner(positioner, position, *args, **kwargs):
> +    pos = _list_of(positioner, Positioner)
> +    val = _list_of(position, (float, int))
> +    return func(pos, val, *args, **kwargs)
> +  return inner
> +
> +def _ensure_positioner_tuple(func):
> +  def inner(positioner, tup, *args, **kwargs):
> +    pos = _list_of(positioner, Positioner)
> +    t = _list_of(tup, (tuple, list))


This won't work with numpy arrays, which given where this will be used seems like a mistake.

—
Reply to this email directly or view it on GitHub<https://github.com/NSLS-II/ophyd/pull/23/files#r21355874>.