Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pablo Piskunow
kwant
Commits
fe686538
Commit
fe686538
authored
Jul 27, 2015
by
Anton Akhmerov
Committed by
Christoph Groth
Jul 28, 2015
Browse files
separate statistics test
parent
dad8845e
Changes
1
Hide whitespace changes
Inline
Side-by-side
kwant/tests/test_rmt.py
View file @
fe686538
...
...
@@ -13,7 +13,7 @@ from kwant import rmt
assert_allclose
=
np
.
testing
.
assert_allclose
def
test_gaussian
():
def
test_gaussian
_symmetries
():
np
.
random
.
seed
(
10
)
n
=
8
for
sym
in
rmt
.
sym_list
:
...
...
@@ -37,6 +37,10 @@ def test_gaussian():
assert_allclose
(
h
,
-
np
.
dot
(
sz
,
np
.
dot
(
h
,
sz
)),
err_msg
=
'SLS broken in '
+
sym
)
def
test_gaussian_distributions
():
np
.
random
.
seed
(
1
)
n
=
8
for
sym
in
rmt
.
sym_list
:
matrices
=
np
.
array
([
rmt
.
gaussian
(
n
,
sym
)[
-
1
,
0
]
for
i
in
range
(
3000
)])
matrices
=
matrices
.
imag
if
sym
in
(
'D'
,
'BDI'
)
else
matrices
.
real
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment