diff --git a/src/spikeinterface/extractors/tests/test_iblextractors.py b/src/spikeinterface/extractors/tests/test_iblextractors.py index 5306de2441..bd0d2184d4 100644 --- a/src/spikeinterface/extractors/tests/test_iblextractors.py +++ b/src/spikeinterface/extractors/tests/test_iblextractors.py @@ -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() @@ -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 diff --git a/src/spikeinterface/postprocessing/tests/test_principal_component.py b/src/spikeinterface/postprocessing/tests/test_principal_component.py index 77bff7a3d8..0e65bb2338 100644 --- a/src/spikeinterface/postprocessing/tests/test_principal_component.py +++ b/src/spikeinterface/postprocessing/tests/test_principal_component.py @@ -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) diff --git a/src/spikeinterface/preprocessing/tests/test_filter.py b/src/spikeinterface/preprocessing/tests/test_filter.py index 398b6cbc0e..e95b456542 100644 --- a/src/spikeinterface/preprocessing/tests/test_filter.py +++ b/src/spikeinterface/preprocessing/tests/test_filter.py @@ -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"