Skip to content
Snippets Groups Projects
Commit c0b21712 authored by Rafal Skolasinski's avatar Rafal Skolasinski Committed by Joseph Weston
Browse files

fix whitespace in kwant.continuum

parent 24b7682f
No related branches found
No related tags found
No related merge requests found
......@@ -177,7 +177,7 @@ def discretize_symbolic(hamiltonian, coords=None, *, locals=None):
hamiltonian = sympify(hamiltonian, locals)
atoms_names = [s.name for s in hamiltonian.atoms(sympy.Symbol)]
if any( s == 'a' for s in atoms_names):
if any(s == 'a' for s in atoms_names):
raise TypeError("'a' is a symbol used internally to represent "
"grid spacing; please use a different symbol.")
......@@ -598,7 +598,7 @@ def _builder_value(expr, coords, grid_spacing, onsite,
# constants and functions in the sympy input will be passed
# as arguments to the value function
arg_names = set.union({s.name for s in const_symbols},
{str(k.func) for k in map_func_calls})
{str(k.func) for k in map_func_calls})
# check if all argument names are valid python identifiers
for name in arg_names:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment