Hi! Thanks for getting back to me so quickly Yes!!! It works I download the file and put it on my work carpet and It runs. I can't call it by kwant.continuum but calling landau_levels.discretize_landau(...) works so it's enough for me
Thank you so much, I am just starting to become familiar with how the organization and internal use of my computer's program files works, so I am sorry if this question was obvious. Happy kwanting :) Marta El mar, 28 mar 2023 a las 17:30, Anton Akhmerov (< anton.akhmerov...@gmail.com>) escribió: > Hi there! > > In order for the script to be compatible with the released Kwant, you > need to use this version of the file: > > https://gitlab.kwant-project.org/kwant/kwant/-/blob/a4897538511fe29fba230307612425d484dd58ee/kwant/continuum/landau_levels.py > > Can you check if it works for you? > > On Tue, 28 Mar 2023 at 18:28, <mgarci...@usal.es> wrote: > > > > Hi! I'm a first year PhD student and I know kwant basics, > > > > I run python with conda interpreter so I have python 3.10.9 and kwant > 1.4.3. > > My problem came when I try to reproduces the 2.11 Adding magnetic field > tutorial cause when I try to run > > > > kwant.continuum.discretize_landau(hamiltonian, N=10) > > > > this error took place: module 'kwant.continuum' has no attribute > 'discretize_landau'. I looked for a solution and I found an email of this > list with the same problem but he didn't say how he fixed it. Sorry if this > sounds repetitive. > > > > I take a look at your gitlab page and I download the kwant package from > there and try to copy-paste the kwant carpet with the landau_levels.py (I > don't know if this is enough or I have to install independently with the > set up or make some connections, please let me know if so). When I did that > and I called kwant.continuum.landau_levels.discretize_landau(hamiltonian > ...) and it gave me another error because kwant.system don't have > NoSymmetry attribute but if I open system.py there is a NoSymmetry Class so > I don't understand what is happening. > > > > Could you shed some light on this matter? thanks in advance and thank > you for the Kwant package, it's great! > > Sorry if this question is not relevant but I don't find how can I fix it > to work with landau_levels. >