-
- Downloads
improve usage of 'substitutions' in 'continuum'
So far substitutions were accepted in form ''string key: sympy expression'', which was extended to accept form of ''string key: string expression'. Also 'substitutions' were only used when input 'hamiltonian' was not a sympy object already, which got alternated to apply them always. Closes #97.
Showing
- kwant/continuum/_common.py 60 additions, 24 deletionskwant/continuum/_common.py
- kwant/continuum/discretizer.py 20 additions, 13 deletionskwant/continuum/discretizer.py
- kwant/continuum/tests/test_common.py 57 additions, 17 deletionskwant/continuum/tests/test_common.py
- kwant/continuum/tests/test_discretizer.py 19 additions, 0 deletionskwant/continuum/tests/test_discretizer.py
Please register or sign in to comment