empty#
- classmethod CrystalMap.empty(shape: int | tuple[int, int] | tuple[int] | None = None, step_sizes: float | tuple[float] | tuple[float, float] | None = None) CrystalMap[source]#
Return a crystal map of a given 2D shape and step sizes with identity rotations.
- Parameters:
- shape
Map shape. Default is a 2D map of shape (5, 10), i.e. with five rows and ten columns.
- step_sizes
Map step sizes. If not given, it is set to 1 px in each map direction given by
shape.
- Returns:
xmapCrystal map.