wrs28 / Kwant.jl

Julia binding to kwant
MIT License
3 stars 1 forks source link

How can support kwant.lattice.chain() #3

Closed kabume closed 4 years ago

kabume commented 4 years ago

Hi, it seems to not support kwant.lattice.chain(), how can make this package support kwant.lattice.chain()? Thanks.

kabume commented 4 years ago

add two lines in Lattice.jl then it will work:

(lat::Monatomic)(i::Integer) = pycall(lat.o,PyObject,i)
chain(a=1;kwargs...) = Monatomic(kwant.lattice.chain(a;kwargs...))