Complete refactoring for tests of metrics - modificed spatial_check function to include also metrics with gradients (less duplicated code)
Complete refactoring for tests of metrics - modificed spatial_check function to include also metrics with gradients (less duplicated code)

lmcinnes/umap,lmcinnes/umap