hexrd.findorientations module
- hexrd.findorientations.create_clustering_parameters(cfg, eta_ome)[source]
Compute min samples and mean reflections per grain for clustering
Parameters
- cfgTYPE
DESCRIPTION.
- eta_omeTYPE
DESCRIPTION.
Returns
Tuple of (min_samples, mean_rpg)
- hexrd.findorientations.discretefiber_reduced(params_in)[source]
input parameters are [hkl_id, com_ome, com_eta]
- hexrd.findorientations.find_orientations(cfg, hkls=None, clean=False, profile=False, use_direct_testing=False)[source]
Parameters
- cfgTYPE
DESCRIPTION.
- hklsTYPE, optional
DESCRIPTION. The default is None.
- cleanTYPE, optional
DESCRIPTION. The default is False.
- profileTYPE, optional
DESCRIPTION. The default is False.
- use_direct_searchTYPE, optional
DESCRIPTION. The default is False.
Returns
None.
- hexrd.findorientations.generate_eta_ome_maps(cfg, hkls=None, save=True)[source]
Generates the eta-omega maps specified in the input config.
Parameters
- cfghexrd.config.root.RootConfig
A hexrd far-field HEDM config instance.
- hklsarray_like, optional
If not None, an override for the hkls used to generate maps. This can be either a list of unique hklIDs, or a list of [h, k, l] vectors. The default is None.
- savebool, optional
If True, write map archive to npz format according to path spec in cfg. The default is True.
Raises
- RuntimeError
DESCRIPTION.
Returns
- eta_omeTYPE
DESCRIPTION.
- hexrd.findorientations.generate_orientation_fibers(cfg, eta_ome)[source]
From ome-eta maps and hklid spec, generate list of quaternions from fibers
- hexrd.findorientations.load_eta_ome_maps(cfg, pd, image_series, hkls=None, clean=False)[source]
Load the eta-ome maps specified by the config and CLI flags. If the maps file exists, it will return those values. If the file does not exist, it will generate them using the passed HKLs (if not None) or the HKLs specified in the config file (if passed HKLs are Noe).
Parameters
- cfg: Config instance
root config file for this problem
- pd: PlaneData instance
crystallographic properties
- image_series: ImageSeries instance
stack of images
- hkls: list, default = None
list of HKLs used to generate the eta-omega maps
- clean: bool, default = False
flag indicating whether (if True) to overwrite existing maps file
Returns
- list:
list of eta-omega map arrays