Source code for httk.atomistic.structure_like
"""
The accepted-input union for structure functions in httk-atomistic.
"""
from typing import Any
import httk.core
from . import (
asu_structure,
compat,
structure,
structure_backend,
structure_record,
structure_view,
)
# A structure is any structure backend/view, a Structure, an ASUStructure (a structure
# held as its asymmetric unit, expanded on demand), or an spglib-like
# (lattice, positions, numbers) triple whose lattice and positions are vector-like.
[docs]
type StructureLike = (
structure_backend.StructureBackend
| structure_view.StructureView
| structure.Structure
| structure_record.StructureRecord
| asu_structure.ASUStructure
| compat.ASEAtomsProtocol
| tuple[httk.core.VectorLike, httk.core.VectorLike, Any]
| list[Any]
)