Skip to content

Commit

Permalink
Tiny rewrite in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Oct 2, 2023
1 parent f76e9d8 commit c20ffda
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,9 @@ def test_label_inheritance_int():
duration = 20.0
num_timepoints = int(sampling_frequency * duration)
num_spikes = 1000
num_units = 7
times = np.int_(np.sort(np.random.uniform(0, num_timepoints, num_spikes)))
labels = np.random.randint(1, 8, size=num_spikes) # 7 units: 1 to 7
labels = np.random.randint(1, 1 + num_units, size=num_spikes) # 7 units: 1 to 7

sorting = se.NumpySorting.from_times_labels(times, labels, sampling_frequency)

Expand Down

0 comments on commit c20ffda

Please sign in to comment.