def _construct_goniometer(phi, chi, omega): phi_axis = (1.0, 0.0, 0.0) chi_axis = (0, 0, -1) omega_axis = (1.0, 0.0, 0.0) axes = flex.vec3_double((phi_axis, chi_axis, omega_axis)) angles = flex.double((phi, chi, omega)) names = flex.std_string(("GON_PHI", "GON_CHI", "GON_OMEGA")) return GoniometerFactory.make_multi_axis_goniometer( axes, angles, names, scan_axis=2 )
def _construct_goniometer(phi, kappa, omega): phi_axis = (1.0, 0.0, 0.0) kappa_axis = (0.914, 0.279, -0.297) omega_axis = (1.0, 0.0, 0.0) axes = flex.vec3_double((phi_axis, kappa_axis, omega_axis)) angles = flex.double((phi, kappa, omega)) names = flex.std_string(("GON_PHI", "GON_KAPPA", "GON_OMEGA")) return GoniometerFactory.make_multi_axis_goniometer( axes, angles, names, scan_axis=2 )