Skip to content
Snippets Groups Projects
Commit b81c7ab4 authored by Christoph Groth's avatar Christoph Groth
Browse files

eradicate last remains of default_site_group

parent ded0e2c3
No related branches found
No related tags found
No related merge requests found
......@@ -318,11 +318,6 @@ period of one flux quantum.
.. specialnote:: Technical details
- Note that in this example, we did not need to set
``sys.default_site_group = lat``. All lattice points were
added using functionality from ``lat`` and thus were
proper sites already.
- Leads have to have proper periodicity. Furthermore, the kwant
format requires the hopping from the leads to the scattering
region to be identical to the hoppings between unit cells in
......
......@@ -362,7 +362,6 @@ def test_ldos(ldos):
sys = kwant.Builder()
gr = kwant.lattice.chain()
lead = kwant.Builder(kwant.TranslationalSymmetry(gr.vec((1,))))
sys.default_site_group = lead.default_site_group = gr
sys[gr(0)] = sys[gr(1)] = lead[gr(0)] = 0
sys[gr(0), gr(1)] = lead[gr(0), gr(1)] = 1
sys.attach_lead(lead)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment