pythtb.TBModel.remove_orb#
- TBModel.remove_orb(to_remove)[source]#
Removes specified orbitals from the model.
- Parameters:
- to_removearray-like or int
List of orbital indices to be removed, or index of single orbital to be removed
Notes
Removing orbitals will reindex the orbitals with indices higher than those that are removed. For example, if model has 6 orbitals and you remove the 2nd orbital, then the orbitals 3-6 will be reindexed to 2-5 (Python counting). Indices of first two orbitals (0 and 1) are unaffected.
Examples
If original_model has say 10 orbitals then returned small_model will have only 8 orbitals.
>>> small_model = original_model.remove_orb([2,5])