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
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Michael Wimmer
kwant
Commits
49b945ef
Commit
49b945ef
authored
12 years ago
by
Christoph Groth
Browse files
Options
Downloads
Patches
Plain Diff
make tests nicer
parent
1470558c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
kwant/linalg/tests/test_mumps.py
+2
-4
2 additions, 4 deletions
kwant/linalg/tests/test_mumps.py
kwant/tests/test_plotter.py
+2
-3
2 additions, 3 deletions
kwant/tests/test_plotter.py
with
4 additions
and
7 deletions
kwant/linalg/tests/test_mumps.py
+
2
−
4
View file @
49b945ef
...
...
@@ -74,10 +74,8 @@ def test_error_minus_9(r=10):
sys
=
Builder
()
sys
[
graphene
.
shape
(
circle
,
(
0
,
0
))]
=
-
0.0001
for
kind
in
(
HoppingKind
((
0
,
0
),
b
,
a
),
HoppingKind
((
0
,
1
),
b
,
a
),
HoppingKind
((
-
1
,
1
),
b
,
a
)):
sys
[
kind
]
=
-
1
for
kind
in
[((
0
,
0
),
b
,
a
),
((
0
,
1
),
b
,
a
),
((
-
1
,
1
),
b
,
a
)]:
sys
[
HoppingKind
(
*
kind
)]
=
-
1
ham
=
sys
.
finalized
().
hamiltonian_submatrix
(
sparse
=
True
)
...
...
This diff is collapsed.
Click to expand it.
kwant/tests/test_plotter.py
+
2
−
3
View file @
49b945ef
...
...
@@ -49,9 +49,8 @@ def sys_2d(W=3, r1=3, r2=8):
def
sys_3d
(
W
=
3
,
r1
=
2
,
r2
=
4
,
a
=
1
,
t
=
1.0
):
lat
=
kwant
.
lattice
.
general
(((
a
,
0
,
0
),
(
0
,
a
,
0
),
(
0
,
0
,
a
)))
lat
.
nearest
=
[
kwant
.
builder
.
HoppingKind
((
1
,
0
,
0
),
lat
),
kwant
.
builder
.
HoppingKind
((
0
,
1
,
0
),
lat
),
kwant
.
builder
.
HoppingKind
((
0
,
0
,
1
),
lat
)]
lat
.
nearest
=
[
kwant
.
builder
.
HoppingKind
(
*
kind
)
for
kind
in
[((
1
,
0
,
0
),
lat
),
((
0
,
1
,
0
),
lat
),
((
0
,
0
,
1
),
lat
)]]
sys
=
kwant
.
Builder
()
def
ring
(
pos
):
...
...
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