Re: [Kwant] putting disorder (kwant.digest.uniform) in graphene with shape function

2017-01-14 Thread Sudin Ganguly
Dear Sir, That helps a lot. Thank you very much. With Regards, Sudin

Re: [Kwant] putting disorder (kwant.digest.uniform) in graphene with shape function

2017-01-13 Thread Abbout Adel
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

Re: [Kwant] putting disorder (kwant.digest.uniform) in graphene with shape function

2017-01-13 Thread SUDIN GANGULY
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 -- সুদিন

Re: [Kwant] putting disorder (kwant.digest.uniform) in graphene with shape function

2017-01-12 Thread Sudin Ganguly
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

Re: [Kwant] putting disorder (kwant.digest.uniform) in graphene with shape function

2017-01-11 Thread Joseph Weston
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