def test_duplicate_data_many(): with assert_warns_regex( RuntimeWarning, "Detected zero distance between ([0-9]*) pairs of samples. Consider removing duplicates to avoid errors in downstream processing.", ): build_graph(np.vstack([data, data[:21]]), n_pca=20, decay=10, thresh=1e-4)
def test_duplicate_data(): with assert_warns_regex( RuntimeWarning, r"Detected zero distance between samples ([0-9and,\s]*). Consider removing duplicates to avoid errors in downstream processing.", ): build_graph(np.vstack([data, data[:10]]), n_pca=20, decay=10, thresh=0)
def test_duplicate_data(): build_graph(np.vstack([data, data[:10]]), n_pca=20, decay=10, thresh=1e-4)
def test_many_duplicate_data(): build_graph(np.vstack([data, data]), n_pca=20, decay=10, thresh=0)