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 Jul 27, 2023
1 parent 94436ee commit 1887c21
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions mne/epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ def iter_evoked(self, copy=False):

yield EvokedArray(data, info, tmin, comment=str(event_id))

#ToDo: Warn Empty
# ToDo: Warn Empty
def subtract_evoked(self, evoked=None):
"""Subtract an evoked response from each epoch.
Expand Down Expand Up @@ -1065,7 +1065,7 @@ def subtract_evoked(self, evoked=None):

return self

#ToDo: Warn Empty
# ToDo: Warn Empty
@fill_doc
def average(self, picks=None, method="mean", by_event_type=False):
"""Compute an average over epochs.
Expand Down Expand Up @@ -1117,7 +1117,7 @@ def average(self, picks=None, method="mean", by_event_type=False):
evokeds = self._compute_aggregate(picks=picks, mode=method)
return evokeds

#ToDo: Warn Empty
# ToDo: Warn Empty
@fill_doc
def standard_error(self, picks=None, by_event_type=False):
"""Compute standard error over epochs.
Expand Down Expand Up @@ -1284,7 +1284,7 @@ def ch_names(self):
"""Channel names."""
return self.info["ch_names"]

#ToDo: Warn Empty
# ToDo: Warn Empty
@copy_function_doc_to_method_doc(plot_epochs)
def plot(
self,
Expand Down Expand Up @@ -1338,7 +1338,7 @@ def plot(
overview_mode=overview_mode,
)

#ToDo: Warn Empty
# ToDo: Warn Empty
@copy_function_doc_to_method_doc(plot_topo_image_epochs)
def plot_topo_image(
self,
Expand Down Expand Up @@ -1469,7 +1469,7 @@ def plot_drop_log(
show=show,
)

#ToDo: Warn Empty
# ToDo: Warn Empty
@copy_function_doc_to_method_doc(plot_epochs_image)
def plot_image(
self,
Expand Down Expand Up @@ -1516,7 +1516,7 @@ def plot_image(
clear=clear,
)

#ToDo: Warn Empty
# ToDo: Warn Empty
@verbose
def drop(self, indices, reason="USER", verbose=None):
"""Drop epochs based on indices or boolean mask.
Expand Down Expand Up @@ -2176,7 +2176,7 @@ def save(
this_epochs, fname, part_idx, n_parts, fmt, split_naming, overwrite
)

#ToDo: Warn Empty
# ToDo: Warn Empty
@verbose
def export(self, fname, fmt="auto", *, overwrite=False, verbose=None):
"""Export Epochs to external formats.
Expand Down Expand Up @@ -2357,7 +2357,7 @@ def equalize_event_counts(self, event_ids=None, method="mintime"):
# actually remove the indices
return self, indices

#ToDo: Warn Empty
# ToDo: Warn Empty
@verbose
def compute_psd(
self,
Expand Down Expand Up @@ -2417,7 +2417,7 @@ def compute_psd(
**method_kw,
)

#ToDo: Warn Empty
# ToDo: Warn Empty
@verbose
def plot_psd(
self,
Expand Down Expand Up @@ -2515,7 +2515,7 @@ def plot_psd(
**method_kw,
)

#ToDo: Warn Empty
# ToDo: Warn Empty
@verbose
def to_data_frame(
self,
Expand Down Expand Up @@ -2592,7 +2592,7 @@ def to_data_frame(
)
return df

#ToDo: Warn Empty
# ToDo: Warn Empty
def as_type(self, ch_type="grad", mode="fast"):
"""Compute virtual epochs using interpolated fields.
Expand Down
2 changes: 1 addition & 1 deletion mne/utils/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def __iter__(self):
:meth:`mne.Epochs.next`.
"""
if len(self) == 0:
raise RuntimeError('Empty!')
raise RuntimeError("Empty!")
self._current = 0
self._current_detrend_picks = self._detrend_picks
return self
Expand Down

0 comments on commit 1887c21

Please sign in to comment.