Camilla Espedal wrote:

Thanks, I now changed the order, but I still get the same error
message. So now the code reads

    kwant.plotter.map(sys, V)
    sys = sys.finalized()

but now it seems to be in a different place the error message is now ‘int’ object has no attribute ‘site’, and the V-function is still

def V(sys):
    Hd = onsite(site)
    return (Hd[0,0] - Hd[1,1]).real

The argument to your function V() should be called “site” not “sys”. Then it should work.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to