round#

Miller.round(max_index: int = 20) Miller[source]#

Round a set of index triplet (Miller) or quartet (Miller-Bravais/Weber) to the closest smallest integers.

Adopted from MTEX’ Miller.round function.

Parameters:
max_index

Maximum integer index to round to, by default 20.

Returns:
mill

Rounded set of index triplet(s) or quartet(s).

Examples using Miller.round#

Restrict to fundamental sector

Restrict to fundamental sector