Skip to content

Commit

Permalink
update test for new argument
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 committed Sep 12, 2023
1 parent 149c9e8 commit 33acb4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_spike_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def test_save_qc_parameters(spikes, tmp_path):
spikes._isolation_threshold = 10
spikes._rpv = 0.02
spikes._sil_threshold = 0.4
spikes._amp_cutoff = 0.98
spikes.save_qc_parameters()
have_json = False

Expand Down Expand Up @@ -280,12 +281,13 @@ def test_qc_preprocessing(spikes, tmp_path):
id = np.array([10, 30, 20])
sil = np.array([0.1, 0.4, 0.5])
ref = np.array([0.3, 0.001, 0.1])
amp = np.array([0.98, 0.98, 0.98])

np.save("isolation_distances.npy", id)
np.save("silhouette_scores.npy", sil)
np.save("refractory_period_violations.npy", ref)
spikes.CACHING = True
spikes.qc_preprocessing(15, 0.02, 0.35)
spikes.qc_preprocessing(15, 0.02, 0.35, 0.97)

assert isinstance(spikes._qc_threshold, np.ndarray)

Expand Down

0 comments on commit 33acb4b

Please sign in to comment.