Dear Declan, Did you put leads ? How did you construct the system Provide a code that we can paste directly and run to reproduce your error.
Adel On Mon, 1 Jun 2020, 21:51 , <declanburk...@gmail.com> wrote: > So the code for the conductance was: > > energies = [] > data = [] > for ie in range(100): > energy = ie * 0.01 > > smatrix = kwant.smatrix(syst, energy) > > energies.append(energy) > data.append(smatrix.transmission(0,1) > > which gave the error: > > UserCodeError: Error occurred in user-supplied value function "onsite". > See the upper part of the above backtrace for more information. >