triqs.lattice.tight_binding.TBLattice.ndim

property TBLattice.ndim

Number of spatial dimensions of the lattice.

Returns:
int

Number of dimensions (1, 2 or 3).