diff --git a/kwant/continuum/discretizer.py b/kwant/continuum/discretizer.py index 119a4c11063b8013a23561abbe96ec33f1102add..c6b95297b0f890167c2f907cd6e2af9dcac50017 100644 --- a/kwant/continuum/discretizer.py +++ b/kwant/continuum/discretizer.py @@ -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: