#NEWLINE# def test_geometry_dict( ) : #NEWLINE# #INDENT# ' Test passing a dictionary and confirm the output ' #NEWLINE# geom_dict = dict ( adjacency_method = 'auto' , adjacency_kwds = { #NEWLINE# #INDENT# 'radius' : 4 , #NEWLINE# #UNINDENT# } , affinity_method = 'auto' , affinity_kwds = { #NEWLINE# #INDENT# 'radius' : 4 , #NEWLINE# #UNINDENT# } , laplacian_method = 'geometric' , laplacian_kwds = { #NEWLINE# #INDENT# 'scaling_eps' : 4 , #NEWLINE# #UNINDENT# } ) #NEWLINE# g1 = Geometry ( ** g1 ) #NEWLINE# base_embedding = BaseEmbedding ( geom = geom_dict ) . fit_geometry ( ) #NEWLINE# assert ( g1 . __dict__ == base_embedding . geom_ . __dict__ )