Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 7, 2024
1 parent 6dc0633 commit 0293e7b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mne/_fiff/tests/test_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,11 @@ def test_set_eeg_reference_dict(ref_channels, expectation):
for val in ref_channels.values():
if isinstance(val, str):
val = [val] # pick_channels expects a list
ref_data.append(_data[..., pick_channels(raw.ch_names, val, ordered=True), :].mean(
ref_data.append(
_data[..., pick_channels(raw.ch_names, val, ordered=True), :].mean(
-2, keepdims=True
))
)
)
ref_data = np.squeeze(np.array(ref_data))
assert_allclose(
_data[ch_reref, :], _reref[ch_reref, :] + ref_data, 1e-6, atol=1e-15
Expand Down

0 comments on commit 0293e7b

Please sign in to comment.