Skip to content

Commit

Permalink
pydocstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
drammock committed Oct 28, 2022
1 parent 38e6ca4 commit a2fb353
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 0 additions & 1 deletion mne/epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2069,7 +2069,6 @@ def compute_tfr(self, method, freqs, *, picks=None, proj=False,
----------
.. footbibliography::
"""

pass

@verbose
Expand Down
1 change: 0 additions & 1 deletion mne/evoked.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,6 @@ def compute_tfr(self, method, freqs, *, tmin=None, tmax=None, picks=None,
----------
.. footbibliography::
"""

pass

@verbose
Expand Down
13 changes: 10 additions & 3 deletions mne/time_frequency/spectrogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,6 @@ def shape(self):
def times(self):
return self._times

def copy(self):
pass

@fill_doc
def get_data(self, picks=None, exclude='bads', fmin=0, fmax=np.inf,
tmin=None, tmax=None, return_times=False, return_freqs=False):
Expand Down Expand Up @@ -394,6 +391,16 @@ def __getitem__(self, item):
BaseRaw._parse_get_set_params, self)
return BaseRaw._getitem(self, item, return_times=False)

def copy(self):
"""Return copy of the RawTFR instance.
Returns
-------
RawTFR : instance of RawTFR
A copy of the object.
"""
return deepcopy(self)


class EpochsTFR(BaseTFR, GetEpochsMixin):
"""Data object for spectrotemporal representations of epoched data.
Expand Down

0 comments on commit a2fb353

Please sign in to comment.