예제 #1
0
def test_multi_motor_rel_list_scan_list_input(RE, hw):
    expected_data = [{
        'motor2': 18,
        'motor2_setpoint': 18,
        'det': 1,
        'motor1': 6,
        'motor1_setpoint': 6
    }, {
        'motor2': 28,
        'motor2_setpoint': 28,
        'det': 1,
        'motor1': 7,
        'motor1_setpoint': 7
    }, {
        'motor2': 38,
        'motor2_setpoint': 38,
        'det': 1,
        'motor1': 8,
        'motor1_setpoint': 8
    }]

    hw.motor1.set(5)
    hw.motor2.set(8)
    scan = bp.rel_list_scan([hw.det], hw.motor1, [1, 2, 3], hw.motor2,
                            [10, 20, 30])
    multi_traj_checker(RE, scan, expected_data)
예제 #2
0
 def _gen(self):
     return rel_list_scan(self.detectors,
                          self.motor,
                          self.steps,
                          md=self.md)
예제 #3
0
def test_dscan_list_input(RE, hw):
    # GH225
    traj = [1, 2, 3]
    hw.motor.set(-4)
    scan = bp.rel_list_scan([hw.det], hw.motor, traj)
    traj_checker(RE, scan, np.array(traj) - 4)
예제 #4
0
def test_dscan(RE, hw):
    traj = np.array([1, 2, 3])
    hw.motor.set(-4)
    scan = bp.rel_list_scan([hw.det], hw.motor, traj)
    traj_checker(RE, scan, traj - 4)
예제 #5
0
def test_simple_rel_list_scan():
    RE = RunEngine()
    hardware = yaqc_bluesky.Device(39424)
    sensor = yaqc_bluesky.Device(39425)
    lis = [-0.1, 0, 0.1, 0.2, 0.5]
    RE(rel_list_scan([sensor], hardware, lis))
예제 #6
0
def test_dscan_list_input(RE, hw):
    # GH225
    traj = [1, 2, 3]
    hw.motor.set(-4)
    scan = bp.rel_list_scan([hw.det], hw.motor, traj)
    traj_checker(RE, scan, np.array(traj) - 4)
예제 #7
0
def test_dscan(RE, hw):
    traj = np.array([1, 2, 3])
    hw.motor.set(-4)
    scan = bp.rel_list_scan([hw.det], hw.motor, traj)
    traj_checker(RE, scan, traj - 4)