Skip to content

Commit

Permalink
test no init
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgigante committed Feb 4, 2020
1 parent 96abfef commit 4adaccd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test_knn.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,13 @@ def test_thresh_small():
assert G.thresh == np.finfo("float").eps


def test_no_initialize():
G = graphtools.Graph(data, thresh=1e-4, initialize=False)
assert not hasattr(G, "_kernel")
G.K
assert hasattr(G, "_kernel")


def test_knn_graph_fixed_bandwidth():
k = None
decay = 5
Expand Down

0 comments on commit 4adaccd

Please sign in to comment.