def test_geometry_update():
    g1 = Geometry(adjacency_method = 'auto',
                  adjacency_kwds = {'radius':4},
                  affinity_method = 'auto',
                  affinity_kwds = {'radius':4},
                  laplacian_method = 'geometric',
                  laplacian_kwds = {'scaling_eps':4})
    base_embedding = BaseEmbedding(geom=g1)
    X = np.random.rand(10, 2)
    # Now update g1 -- object that was passed
    g1.set_data_matrix(X)
    # confirm internal object is updated
    assert_allclose(g1.X, base_embedding.geom.X)
Test passing geometry object then independently update a parameter and confirm that the embedding
dataset/ETHPy150Open mmp2/megaman/megaman/embedding/tests/test_base.py/test_geometry_update