KPM: validate vector_factory type
Otherwise this causes an assertion failure inside _VectorFactory
(or _VectorFactory
could raise a TypeError
).
Relevant code location: https://gitlab.kwant-project.org/kwant/kwant/blob/master/kwant/kpm.py#L221
Otherwise this causes an assertion failure inside _VectorFactory
(or _VectorFactory
could raise a TypeError
).
Relevant code location: https://gitlab.kwant-project.org/kwant/kwant/blob/master/kwant/kpm.py#L221