Fix error in `kwant.kpm` vector factories when `norbs=None`
The kwant.kpm
module uses kwant.operator._get_tot_norbs
, which fails when norbs=None
.
The error is raised by numpy and not clear.
This MR clarifies that error message.
The kwant.kpm
module uses kwant.operator._get_tot_norbs
, which fails when norbs=None
.
The error is raised by numpy and not clear.
This MR clarifies that error message.