Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
kwant
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Joseph Weston
kwant
Commits
b98757b1
Commit
b98757b1
authored
5 years ago
by
Joseph Weston
Browse files
Options
Downloads
Patches
Plain Diff
correct norbs for some tests
parent
6b985ee2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#20745
passed
5 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
kwant/physics/tests/test_noise.py
+1
-1
1 addition, 1 deletion
kwant/physics/tests/test_noise.py
kwant/solvers/tests/_test_sparse.py
+8
-2
8 additions, 2 deletions
kwant/solvers/tests/_test_sparse.py
with
9 additions
and
3 deletions
kwant/physics/tests/test_noise.py
+
1
−
1
View file @
b98757b1
...
...
@@ -14,7 +14,7 @@ from kwant.physics import two_terminal_shotnoise
from
kwant._common
import
ensure_rng
n
=
5
chain
=
kwant
.
lattice
.
chain
(
norbs
=
2
)
chain
=
kwant
.
lattice
.
chain
(
norbs
=
n
)
def
twoterminal_system
():
rng
=
ensure_rng
(
11
)
...
...
This diff is collapsed.
Click to expand it.
kwant/solvers/tests/_test_sparse.py
+
8
−
2
View file @
b98757b1
...
...
@@ -15,8 +15,8 @@ import kwant
from
kwant._common
import
ensure_rng
n
=
5
chain
=
kwant
.
lattice
.
chain
(
norbs
=
1
)
sq
=
square
=
kwant
.
lattice
.
square
(
norbs
=
1
)
chain
=
kwant
.
lattice
.
chain
(
norbs
=
n
)
sq
=
square
=
kwant
.
lattice
.
square
(
norbs
=
n
)
class
LeadWithOnlySelfEnergy
:
...
...
@@ -111,6 +111,8 @@ def test_one_lead(smatrix):
# Test that a system with one lead with no propagating modes has a
# 0x0 S-matrix.
def
test_smatrix_shape
(
smatrix
):
chain
=
kwant
.
lattice
.
chain
(
norbs
=
1
)
system
=
kwant
.
Builder
()
lead0
=
kwant
.
Builder
(
kwant
.
TranslationalSymmetry
((
-
1
,)))
lead1
=
kwant
.
Builder
(
kwant
.
TranslationalSymmetry
((
1
,)))
...
...
@@ -264,6 +266,8 @@ def test_singular_graph_system(smatrix):
# zero eigenvalues than the lead hopping matrix. Older version of the
# sparse solver failed here.
def
test_tricky_singular_hopping
(
smatrix
):
sq
=
kwant
.
lattice
.
square
(
norbs
=
1
)
system
=
kwant
.
Builder
()
lead
=
kwant
.
Builder
(
kwant
.
TranslationalSymmetry
((
4
,
0
)))
...
...
@@ -294,6 +298,7 @@ def test_tricky_singular_hopping(smatrix):
# Test the consistency of transmission and conductance_matrix for a four-lead
# system without time-reversal symmetry.
def
test_many_leads
(
*
factories
):
sq
=
kwant
.
lattice
.
square
(
norbs
=
1
)
E
=
2.1
B
=
0.01
...
...
@@ -512,6 +517,7 @@ def test_arg_passing(wave_function, ldos, smatrix):
def
hopping
(
site1
,
site2
,
a
,
b
):
return
b
-
a
square
=
kwant
.
lattice
.
square
(
norbs
=
1
)
W
=
3
L
=
4
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment