Dear Kwant community,

Hope you are doing well.

I'm trying to run some of thee Kawant tutorials, after loading some
required packages as bellow

================================================================
import holoviews as hv
import kwant
import numpy as np

# Local imports
import funcs
from funcs import constants, discretized_hamiltonian, get_cuts, add_vlead,
hopping_between_cuts

%matplotlib inline
hv.notebook_extension()

def plot_CPR(syst, hopping, params, tol=0.01, max_frequencies=1000):
    phases = np.linspace(-np.pi, np.pi, 51)
    H_0_cache = []
    I = [funcs.current_at_phase(syst, hopping, params, H_0_cache, phase,
tol, max_frequencies)
                  for phase in phases]

    return hv.Curve((phases, I), kdims=['phase'], vdims=['$I$'],
label='Nummerical CPR')

================================================================

When I want to make a 1D system via command "syst, hopping =
funcs.make_1d_wire(a=10, L=100, L_sc=100)",
I'm getting an error

================================================================

TypeError: __init__() missing 1 required positional argument: 'parameters'

================================================================

I will highly appreciate it if you guide me on how to fix it.

Thank you in advance.

Regards,
Vahid

Reply via email to