First cut of user CLI API 

Why … are we using punched cards, wise dumb terminals, IBM 8086, BBC model B? I spent a lot of money on high res monitors so we have over 80 characters in a window.
On Dec 5, 2014, at 12:08 AM, Thomas A Caswell <notifications@github.com<mailto:notifications@github.com>> wrote:


In ophyd/userapi/cli_api.py:

> +  :param limits: A single tupple or a collection of tuples for the form (+ve, -ve) limits.
> +
> +  """
> +
> +  print('')
> +
> +  for p in positioner:
> +    if not isinstance(p, EpicsMotor):
> +      raise ValueError("Positioners must be EpicsMotors to set limits")
> +
> +  for p,lim in zip(positioner, limits):
> +    lim1 = max(lim)
> +    lim2 = min(lim)
> +    if not caput(p._record + ".HLM", lim1):
> +      raise Exception("Unable to set limits for %s", p.name)
> +    print("Upper limit set to {:{fmt}} for positioner {}".format(lim1, p.name, fmt = VALUE_FMT))


Please wrap to 80 chr

—
Reply to this email directly or view it on GitHub<https://github.com/NSLS-II/ophyd/pull/23/files#r21355748>.