def test_hkl_to_angles(): dc.con('a_eq_b') dc.con('mu', 0) dc.con(NUNAME, 0) h, k, l = [1, 0, 0] angles_calc, param_calc = dc.hkl_to_angles(h, k, l) aneq_(angles_calc, angles) dneq_(param_calc, param)
def test_hkl_to_angles_bypassing_hardware_plugin(): dc.con('a_eq_b') dc.con('mu', 0) dc.con(NUNAME, 0) h, k, l = [1, 0, 0] angles_calc, param_calc = dc.hkl_to_angles(h, k, l, en) aneq_(angles_calc, angles) dneq_(param_calc, param)
def test_angles_to_hkl(): hkl_calc, param_calc = dc.angles_to_hkl(angles) aneq_(hkl_calc, [1, 0, 0]) dneq_(param_calc, param)
def test_angles_to_hkl_bypassing_hardware_plugin(): hkl_calc, param_calc = dc.angles_to_hkl(angles, en) aneq_(hkl_calc, [1, 0, 0]) dneq_(param_calc, param)