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
kwant
kwant
Commits
f2ba3eb2
Commit
f2ba3eb2
authored
Nov 09, 2016
by
Anton Akhmerov
Browse files
use nonrandom coordinates in test_mask_interpolate, closes #1
parent
296ee058
Changes
1
Hide whitespace changes
Inline
Side-by-side
kwant/tests/test_plotter.py
View file @
f2ba3eb2
...
@@ -158,9 +158,7 @@ def test_map():
...
@@ -158,9 +158,7 @@ def test_map():
def
test_mask_interpolate
():
def
test_mask_interpolate
():
# A coordinate array with coordinates of two points almost coinciding.
# A coordinate array with coordinates of two points almost coinciding.
coords
=
np
.
random
.
rand
(
10
,
2
)
coords
=
np
.
array
([[
0
,
0
],
[
1e-7
,
1e-7
],
[
1
,
1
],
[
1
,
0
]])
coords
[
5
]
*=
1e-8
coords
[
5
]
+=
coords
[
0
]
warnings
.
simplefilter
(
"ignore"
)
warnings
.
simplefilter
(
"ignore"
)
with
warnings
.
catch_warnings
(
record
=
True
)
as
w
:
with
warnings
.
catch_warnings
(
record
=
True
)
as
w
:
...
...
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