Commit 0f3068d1 authored by Christoph Groth's avatar Christoph Groth
Browse files

fix formatting

parent 5e882752
......@@ -9,6 +9,7 @@ from kwant.physics.leads import square_selfenergy
__all__ = ['System']
class Lead(object):
def __init__(self, width, t, potential):
self.width = width
......
......@@ -6,8 +6,6 @@
# the file AUTHORS.rst at the top-level directory of this distribution and at
# http://kwant-project.org/authors.
__all__ = ['Builder', 'Site', 'SiteFamily', 'SimpleSiteFamily', 'Symmetry',
'HoppingKind', 'Lead', 'BuilderLead', 'SelfEnergyLead', 'ModesLead']
......
......@@ -19,8 +19,6 @@ good enough to pass the "dieharder" battery of tests: see the function `test` of
this module.
"""
from math import pi, log, sqrt, cos
from hashlib import md5
from struct import unpack
......
......@@ -17,9 +17,9 @@ def _DISABLED_test_bisect():
size = 5
graph = Graph()
for i in range(size-1):
for i in range(size - 1):
offset = i * size
for j in range(size-1):
for j in range(size - 1):
graph.add_edge(offset + j, offset + j + 1)
graph.add_edge(offset + j + 1, offset + j)
if i > 0:
......@@ -36,9 +36,9 @@ def _DISABLED_test_reset():
size = 5
graph = Graph()
for i in range(size-1):
for i in range(size - 1):
offset = i * size
for j in range(size-1):
for j in range(size - 1):
graph.add_edge(offset + j, offset + j + 1)
graph.add_edge(offset + j + 1, offset + j)
if i > 0:
......
......@@ -83,7 +83,7 @@ def test_induced_subgraph():
num_nodes = 6
graph = Graph()
for i in range(num_nodes-1):
for i in range(num_nodes - 1):
graph.add_edge(i, i + 1)
graph.add_edge(1, 0)
g = graph.compressed()
......
......@@ -6,8 +6,6 @@
# the file AUTHORS.rst at the top-level directory of this distribution and at
# http://kwant-project.org/authors.
__all__ = ['TranslationalSymmetry', 'general', 'Polyatomic', 'Monatomic',
'chain', 'square', 'triangular', 'honeycomb', 'kagome']
......
......@@ -6,13 +6,12 @@
# the file AUTHORS.rst at the top-level directory of this distribution and at
# http://kwant-project.org/authors.
__all__ = ['lll', 'cvp', 'voronoi']
import numpy as np
from itertools import product
def gs_coefficient(a, b):
"""Gram-Schmidt coefficient."""
return np.dot(a, b) / np.linalg.norm(b)**2
......
......@@ -6,8 +6,6 @@
# the file AUTHORS.rst at the top-level directory of this distribution and at
# http://kwant-project.org/authors.
__all__ = ['gaussian', 'circular']
import numpy as np
......
......@@ -8,7 +8,6 @@
"""Low-level interface of systems"""
__all__ = ['System', 'FiniteSystem', 'InfiniteSystem']
import abc
......
......@@ -6,7 +6,6 @@
# the file AUTHORS.rst at the top-level directory of this distribution and at
# http://kwant-project.org/authors.
import warnings
from random import Random
from nose.tools import assert_raises
......
......@@ -6,7 +6,6 @@
# the file AUTHORS.rst at the top-level directory of this distribution and at
# http://kwant-project.org/authors.
from math import sqrt
import numpy as np
import tinyarray as ta
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment