graph2mat.AtomicTableWithEdges
- class graph2mat.AtomicTableWithEdges(atoms: Sequence[Atom])[source]
Bases:
BasisTableWithEdgesVariant of
BasisTableWithEdgesfor the case in which points are atoms.This class mostly just adds a few aliases to the methods of
BasisTableWithEdgesby replacing “point” to “atom” in the method names. It also provides some methods to create a table from atomic basis.See also
BasisTableWithEdgesThe class that actually does the work.
Methods
atom_block_pointer(atom_types)atom_type_to_edge_type(atom_type)from_basis_dir(basis_dir[, basis_ext, ...])Generates a table from a directory containing basis files.
from_basis_glob(basis_glob[, no_basis_atoms])Generates a table from basis files that match a glob pattern.
Attributes
If the basis was read from files, this might store the names of the files.
If the basis was read from files, this might store the contents of the files.
basisList of
PointBasisobjects that this table knows about.basis_conventionThe spherical harmonics convention used for the basis (same for all
PointBasis).typesType identifier for each point basis.
point_matrixThe matrix that is constant for each type of point.
edge_typeThe edge type for each pair of point types.
RShape (n_point_types,).
basis_sizeShape (n_point_types,).
point_block_shapeShape (n_point_types, 2).
point_block_sizeShape (n_point_types,).
edge_block_shapeShape (n_edge_types, 2).
edge_block_sizeShape (n_edge_types,).
edge_type_to_point_typesShape (n_edge_types, 2).
change_of_basisShape (3, 3).
change_of_basis_invShape (3, 3).
- property atom_block_shape
- property atom_block_size
- property atomic_DM
- file_contents: List[str] | None
If the basis was read from files, this might store the contents of the files. For saving/loading purposes.
- file_names: List[str] | None
If the basis was read from files, this might store the names of the files. For saving/loading purposes.
- classmethod from_basis_dir(basis_dir: str, basis_ext: str = 'ion.xml', no_basis_atoms: dict | None = None) AtomicTableWithEdges[source]
Generates a table from a directory containing basis files.
- Parameters:
basis_dir – The directory containing the basis files.
basis_ext – The extension of the basis files.
- classmethod from_basis_glob(basis_glob: str | Generator, no_basis_atoms: dict | None = None) AtomicTableWithEdges[source]
Generates a table from basis files that match a glob pattern.
- Parameters:
basis_glob – The glob pattern to match the basis files.
- property zs