pythtb.Lattice.remove_orb#

Lattice.remove_orb(to_remove)[source]#

Remove an orbital from the lattice.

Parameters:
to_removearray-like or int

List of orbital indices to be removed, or index of single orbital to be removed

Returns:
None

Notes

  • The number of orbitals norb is updated accordingly.

  • Raises an error if the index is out of bounds.