Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
john-veillette committed Sep 16, 2024
1 parent b957cea commit f465aa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyprep/find_noisy_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def get_bads(self, verbose=False, as_dict=False):
"bad_by_SNR": self.bad_by_SNR,
"bad_by_dropout": self.bad_by_dropout,
"bad_by_ransac": self.bad_by_ransac,
"bad_by_manual": self.bad_by_manual
"bad_by_manual": self.bad_by_manual,
}

all_bads = set()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_find_noisy_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ def test_bad_by_nan(raw_tmp):
nd.find_bad_by_nan_flat()
assert nd.bad_by_nan == [raw_tmp.ch_names[nan_idx]]


def test_bad_by_manual(raw_tmp):
"""Test the detection of channels marked bad a priori."""
# Insert a NaN value into a random channel
n_chans = raw_tmp.get_data().shape[0]
nan_idx = int(rng.integers(0, n_chans, 1)[0])
raw_tmp._data[nan_idx, 3] = np.nan
Expand Down

0 comments on commit f465aa1

Please sign in to comment.