hexrd.fitting.calibration.laue module

class hexrd.fitting.calibration.laue.LaueCalibrator(instr, material, grain_params, default_refinements=None, min_energy=5, max_energy=25, tth_distortion=None, calibration_picks=None, euler_convention=('zxz', False), xray_source: str | None = None)[source]

Bases: AbstractGrainCalibrator

A Laue calibrator “is-a” specific case for a grain calibrator.

Just like a grain calibrator, a Laue calibrator is calibrating grain parameters.

There are some unique properties for Laue, though, such as having a varying energy range rather than a constant energy value. Also, we do not utilize any omega periods.

autopick_points(raw_img_dict, tth_tol=5.0, eta_tol=5.0, npdiv=2, do_smoothing=True, smoothing_sigma=2, use_blob_detection=True, blob_threshold=0.25, fit_peaks=True, min_peak_int=1.0, fit_tth_tol=0.1)[source]

Parameters

raw_img_dictTYPE

DESCRIPTION.

tth_tolTYPE, optional

DESCRIPTION. The default is 5..

eta_tolTYPE, optional

DESCRIPTION. The default is 5..

npdivTYPE, optional

DESCRIPTION. The default is 2.

do_smoothingTYPE, optional

DESCRIPTION. The default is True.

smoothing_sigmaTYPE, optional

DESCRIPTION. The default is 2.

use_blob_detectionTYPE, optional

DESCRIPTION. The default is True.

blob_thresholdTYPE, optional

DESCRIPTION. The default is 0.25.

fit_peaksTYPE, optional

DESCRIPTION. The default is True.

Returns

None.

property energy_cutoffs
model()[source]
property name
residual()[source]

Compute a residual using the calibration data.

Calibration data may have already been stored as an attribute on the calibration class instead, in which case, calibration_data can be None.

property tth_distortion
type = 'laue'
hexrd.fitting.calibration.laue.gaussian_2d(p, data)[source]
hexrd.fitting.calibration.laue.gaussian_2d_int(y, x, *p)[source]
hexrd.fitting.calibration.laue.sxcal_obj_func(grain_params, instr, meas_xy, hkls_idx, bmat, energy_cutoffs, sim_only=False)[source]

Objective function for Laue-based fitting.

energy_cutoffs are [minEnergy, maxEnergy] where min/maxEnergy can be lists