コード例 #1
0
    def interlaced_plan(dets, motor):
        to_read = (motor, *dets)
        run_names = ["run_one", "run_two", "run_three"]
        for rid in run_names:
            yield from srkw(bps.open_run(md={rid: rid}), run=rid)

        for j in range(5):
            for i, rid in enumerate(run_names):
                yield from bps.mov(motor, j + 0.1 * i)
                yield from srkw(bps.trigger_and_read(to_read), run=rid)

        for rid in run_names:
            yield from srkw(bps.close_run(), run=rid)
コード例 #2
0
 def plan3():
     yield from srkw(empty_plan(), 10)
コード例 #3
0
 def plan2():
     yield from srkw(empty_plan(), object())
コード例 #4
0
 def plan1():
     yield from srkw(empty_plan(), None)
コード例 #5
0
 def interlaced_plan(dets, motor):
     run_names = ["run_one", "run_two", "run_three"]
     for rid in run_names:
         yield from srkw(bps.open_run(md={rid: rid}), run=rid)
     raise Exception("womp womp")
コード例 #6
0
 def plan5():
     yield from srkw(empty_plan(), run="run_name")
コード例 #7
0
 def plan4():
     yield from srkw(empty_plan(), "run_name")