hexrd.distortion package

Submodules

Module contents

Distortion package (python 3)

hexrd.distortion.get_mapping(maptype, params, **kwargs)[source]

Initializes specified distortion class.

Parameters

maptypestr

The maptype (key) for the desired distortion function in the registry.

paramsarray_like

The parameters associated with the evaluation of the distortion function specified by maptype.

**kwargsdict

Optional keyword arguments to pass the distortion function.

Returns

class

The distortion functin interface associated with maptype.

hexrd.distortion.maptypes()[source]

Returns list of available maptypes.

Returns

list

The list of distortion functions keys in the registry.