Tangent space embedding

Different connectivity measures, including tangent space measure
Why using a `try ... except` ? You can use a simple `if` there. Also, `np.testing.assert_almost_equal(p, int(p))` is always true.

    if n != int(p):
        raise ...