Improve to singularity detection
Improve to singularity detection

Changed sign check to numpy allclose statement.
Adjusted tolerance for actual zero to 1e-2

jensv/fluxtubestability,jensv/fluxtubestability