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
Ha! It doesn’t. That bit is broken for now. I could not find a way to get the last run-id from the run engine. For now I can’t find a way round this.

S

On Dec 8, 2014, at 12:33 AM, Thomas A Caswell <notifications@github.com<mailto:notifications@github.com>> wrote:


In ophyd/userapi/scan_api.py:

> +        with self:
> +            self.setupDetectors()
> +            self.setupTriggers()
> +
> +            for pos, path in zip(self.positioners, self.paths):
> +                pos.set_trajectory(path)
> +
> +            scan_args = dict()
> +            scan_args['detectors'] = self.detectors
> +            scan_args['triggers'] = self.triggers
> +            scan_args['positioners'] = self.positioners
> +            scan_args['settle_time'] = self.settle_time
> +
> +            # Run the scan!
> +
> +            self.data = self._run_eng.start_run(self._run_id + 1,


Where does _run_id get incremented?

—
Reply to this email directly or view it on GitHub<https://github.com/NSLS-II/ophyd/pull/26/files#r21435668>.