hexrd.fitting.calibration.lmfit_param_handling module

exception hexrd.fitting.calibration.lmfit_param_handling.LmfitValidationException[source]

Bases: Exception

hexrd.fitting.calibration.lmfit_param_handling.add_engineering_constraints(params, engineering_constraints)[source]
hexrd.fitting.calibration.lmfit_param_handling.create_grain_params(mat_name, grain, refinements=None)[source]
hexrd.fitting.calibration.lmfit_param_handling.create_instr_params(instr, euler_convention=('zxz', False))[source]
hexrd.fitting.calibration.lmfit_param_handling.create_material_params(material, refinements=None)[source]
hexrd.fitting.calibration.lmfit_param_handling.create_tth_parameters(meas_angles)[source]
hexrd.fitting.calibration.lmfit_param_handling.detector_angles_euler(panel, euler_convention)[source]
hexrd.fitting.calibration.lmfit_param_handling.grain_param_names(mat_name)[source]
hexrd.fitting.calibration.lmfit_param_handling.normalize_euler_convention(euler_convention)[source]
hexrd.fitting.calibration.lmfit_param_handling.param_names_euler_convention(base, euler_convention)[source]
hexrd.fitting.calibration.lmfit_param_handling.rename_to_avoid_collision(params, all_params)[source]
hexrd.fitting.calibration.lmfit_param_handling.set_detector_angles_euler(panel, base_name, params, euler_convention)[source]
hexrd.fitting.calibration.lmfit_param_handling.update_instrument_from_params(instr, params, euler_convention)[source]

this function updates the instrument from the lmfit parameter list. we don’t have to keep track of the position numbers as the variables are named variables. this will become the standard in the future since bound constraints can be very easily implemented.

hexrd.fitting.calibration.lmfit_param_handling.update_material_from_params(params, material)[source]
hexrd.fitting.calibration.lmfit_param_handling.validate_params_list(params_list)[source]