lines_coordinates#

GeometricalKikuchiPatternSimulation.lines_coordinates(index: int | tuple | None = None, coordinates: str = 'detector', exclude_nan: bool = True) ndarray[source]#

Get Kikuchi line coordinates of a single simulation.

Parameters:
index

Index of the simulation to get line coordinates for. If not given, this is the first simulation.

coordinates

The type of coordinates, either "detector" (default) or "gnomonic".

exclude_nan

Whether to exclude coordinates of Kikuchi lines not present in the pattern. Default is True. By passing False, all simulations (by varying index) returns an array of the same shape.

Returns:
coords

Kikuchi line coordinates.