structuretoolkit.common.helper.get_cell

Contents

structuretoolkit.common.helper.get_cell#

structuretoolkit.common.helper.get_cell(cell: Atoms | list | tuple | ndarray | float)[source]#

Get cell of an ase structure, or convert a float or a (3,)-array into a orthogonal cell.

Parameters:

cell (Atoms|ndarray|list|float|tuple) – Cell

Returns:

Cell

Return type:

(3, 3)-array