kwant.system.
SiteArray
(family, tags)[source]¶Bases: collections.abc.Sequence
An array of sites, members of a SiteFamily
.
family (an instance of SiteFamily
) – The ‘type’ of the sites.
tags (a sequence of python objects) – Sequence of unique identifiers of the sites within the site array family, typically vectors of integers.
ValueError – If tags
are not proper tags for family
.
See also
Methods
index
(value[, start[, stop]]) → integer – return first index of value.[source]¶Raises ValueError if the value is not present.
Supporting start and stop arguments is optional, but recommended.
positions
()[source]¶Real space position of the site.
This relies on family
having a pos
method (see SiteFamily
).