Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/spikeinterface/extractors/tests/test_iblextractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ def test_channel_ids(self):

def test_gains(self):
expected_gains = 2.34375 * np.ones(shape=384)
assert_array_equal(x=self.recording.get_channel_gains(), y=expected_gains)
assert_array_equal(self.recording.get_channel_gains(), expected_gains)

def test_offsets(self):
expected_offsets = np.zeros(shape=384)
assert_array_equal(x=self.recording.get_channel_offsets(), y=expected_offsets)
assert_array_equal(self.recording.get_channel_offsets(), expected_offsets)

def test_probe_representation(self):
probe = self.recording.get_probe()
Expand Down Expand Up @@ -142,11 +142,11 @@ def test_channel_ids(self):

def test_gains(self):
expected_gains = np.concatenate([2.34375 * np.ones(shape=384), [1171.875]])
assert_array_equal(x=self.recording.get_channel_gains(), y=expected_gains)
assert_array_equal(self.recording.get_channel_gains(), expected_gains)

def test_offsets(self):
expected_offsets = np.zeros(shape=385)
assert_array_equal(x=self.recording.get_channel_offsets(), y=expected_offsets)
assert_array_equal(self.recording.get_channel_offsets(), expected_offsets)

def test_probe_representation(self):
expected_exception = ValueError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def test_get_projections(self, sparse):

random_spikes_ext = sorting_analyzer.get_extension("random_spikes")
random_spikes_indices = random_spikes_ext.get_data()
unit_ids_num_random_spikes = np.sum(random_spikes_ext.params["max_spikes_per_unit"] for _ in some_unit_ids)
unit_ids_num_random_spikes = sum(random_spikes_ext.params["max_spikes_per_unit"] for _ in some_unit_ids)

# this should be all spikes all channels
some_projections, spike_unit_index = ext.get_some_projections(channel_ids=None, unit_ids=None)
Expand Down
2 changes: 1 addition & 1 deletion src/spikeinterface/preprocessing/tests/test_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_causal_filter_main_kwargs(self, recording_and_data):

# Then, change all kwargs to ensure they are propagated
# and check the backwards version.
options["band"] = [671]
options["band"] = 671
options["btype"] = "highpass"
options["filter_order"] = 8
options["ftype"] = "bessel"
Expand Down
Loading