Dear Sir,
That helps a lot. Thank you very much.
With Regards,
Sudin
Dear Sudin,
You can plot the configuration of your system as follows:
kwant.plotter.plot(sys_2['sys'],site_color=lambda
site:onsite(site,'1'),colorbar=True, cmap=None)
As long as you are using the same parameter 'salt', you will be studying
the same configuration of disorder. So, to be sure that
Dear Sir,
Thank you for the quick reply. I think my institute mail is not working
properly, so I used this mail-id.
By using the line: lambda site: sys_2['sys'][site]
I got another error massage, which says that, "TypeError: 'int' object is
not callable".
With regards,
Sudin
--
সুদিন
Dear Sir,
Thank you for the quick reply.
By using the line:
lambda site: sys_2['sys'][site](site, '0')
I got another error massage, which says that, "TypeError: 'int' object is
not callable".
With Regards,
Sudin
Hi,
> kwant.plotter.plot(sys_2['sys'],site_color=lambda site:
> sys_2['sys'][site],colorbar = True, cmap='gist_heat')
The line
lambda site: sys_2['sys'][site]
defines a function that takes a site and returns a **function** (i.e.
the onsite function). You actually want to return the **value