Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeZiminski committed Nov 15, 2024
1 parent 0f97f46 commit 6dc1f72
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/spikeinterface/preprocessing/tests/test_whiten.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def test_compute_covariance_matrix(self, dtype):
otherwise it can overflow.
"""
eps = 1e-16
_, cov_mat, recording = self.get_test_recording(num_segments=1, dtype=dtype)
_, cov_mat, recording = self.get_test_recording(dtype=dtype)

whitened_recording = whiten(
recording,
Expand Down Expand Up @@ -161,7 +161,7 @@ def test_non_default_eps(self):
the cov mat if the correct eps is used.
"""
eps = 1
_, cov_mat, recording = self.get_test_recording(num_segments=1, dtype=np.float32)
_, cov_mat, recording = self.get_test_recording(dtype=np.float32)

whitened_recording = whiten(
recording,
Expand Down Expand Up @@ -218,7 +218,7 @@ def test_apply_mean(self, apply_mean):
means = np.array([10, 20, 30])

eps = 1e-16
_, cov_mat, recording = self.get_test_recording(num_segments=1, dtype=np.float32, means=means)
_, cov_mat, recording = self.get_test_recording(dtype=np.float32, means=means)

whitened_recording = whiten(
recording,
Expand Down Expand Up @@ -269,7 +269,7 @@ def test_whiten_regularisation_norm(self):
whitening preprocessing is the same as the one
computed from sklearn when regularise kwargs are given.
"""
_, _, recording = self.get_test_recording(num_segments=1, dtype=np.float32)
_, _, recording = self.get_test_recording(dtype=np.float32)

whitened_recording = whiten(
recording,
Expand Down Expand Up @@ -297,7 +297,7 @@ def test_local_vs_global_whiten(self):
channels are considered for whitening. Test that whitening
is correct for the first pair and last pair.
"""
_, _, recording = self.get_test_recording(num_segments=1, dtype=np.float32)
_, _, recording = self.get_test_recording(dtype=np.float32)

y_dist = 2
recording.set_channel_locations(
Expand Down

0 comments on commit 6dc1f72

Please sign in to comment.