ValueError: Number of orbitals not defined.
I want to obtain a probability density and spin density plots in kwant from a two dimensional lattice.But I am getting the following error: Please help me out.
Traceback (most recent call last):
File "discreatizenew.py", line 331, in
main()
File "discreatizenew.py", line 326, in main
analyze_qsh()
File "discreatizenew.py", line 306, in analyze_qsh
prob_density = kwant.operator.Density(syst, np.eye(4))
File "kwant/operator.pyx", line 747, in kwant.operator.Density.init
File "kwant/operator.pyx", line 435, in kwant.operator._LocalOperator.init
ValueError: Number of orbitals not defined.
Declare the number of orbitals using the
norbs
keyword argument when constructing the site families (lattices).