Skip to content

Commit

Permalink
adding test for n_splits > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
carsen-stringer committed Aug 5, 2023
1 parent 01b2fa1 commit 9fc08c9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_rastermap.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ def test_rastermap(test_file):

model = Rastermap().fit(data=spks)

assert hasattr(model, "embedding")
assert hasattr(model, "isort")
assert hasattr(model, "Usv")
assert hasattr(model, "Vsv")

def test_rastermap_splits(test_file):
dat = np.load(test_file)
spks = dat["spks"]

model = Rastermap(n_splits=2, n_clusters=20, nc_splits=10).fit(data=spks)

assert hasattr(model, "embedding")
assert hasattr(model, "isort")
assert hasattr(model, "Usv")
Expand Down

0 comments on commit 9fc08c9

Please sign in to comment.