MAINT: avoid shadowing the eigvals function

The `scipy.linalg.eigvals` function is imported as `eigvals` so sequences of eigenvalues should not be stored in a variable also called `eigvals`.