Scans API for ophyd

Hi,

Here is the first cut again for scans using the class concept. This is tested with the xf23id1 config. 

Generic N x M scans are possible. 

Needs work on type checking and exception handling. 

Comments?
S
See previous comment. We should add a TODO (as an issue?) to fix this.

Thanks,
Stuart
On Dec 7, 2014, at 11:13 PM, Thomas A Caswell <notifications@github.com<mailto:notifications@github.com>> wrote:


In ophyd/userapi/scan_api.py:

> +
> +        npts = ensure_iterator(npts)
> +        positioners = ensure_iterator(positioners)
> +        start = ensure_iterator(start)
> +        stop = ensure_iterator(stop)
> +
> +        dimension = len(npts)
> +        pos = list()
> +        paths = list()
> +
> +        npts = np.asarray(npts) + 1
> +
> +        start = ensure_iterator(start)
> +        stop = ensure_iterator(stop)
> +
> +        for b, e, d in zip(start, stop, range(dimension)):


why not zip over positioners as well?

—
Reply to this email directly or view it on GitHub<https://github.com/NSLS-II/ophyd/pull/26/files#r21434076>.