Skip to content

Commit

Permalink
MAINT: Better fix for deprecation (mne-tools#11789)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner authored Jul 10, 2023
1 parent 5608da2 commit e289436
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions mne/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ def pytest_configure(config):
ignore:.*np\.find_common_type is deprecated.*:DeprecationWarning
# https://github.com/joblib/joblib/issues/1454
ignore:.*`byte_bounds` is dep.*:DeprecationWarning
# TODO: we should fix this one
ignore:The provided callable.*:FutureWarning
""" # noqa: E501
for warning_line in warning_lines.split("\n"):
warning_line = warning_line.strip()
Expand Down
4 changes: 2 additions & 2 deletions mne/time_frequency/tests/test_spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ def test_unaggregated_spectrum_to_data_frame(raw, long_format, method, output):
def _fun(x):
return np.nanmean(np.abs(x))

agg_df = gb.agg(_fun)
else:
_fun = np.nanmean
agg_df = gb.aggregate(_fun)
agg_df = gb.mean() # excludes missing values itself
else:
gb = gb[df.columns] # https://github.com/pandas-dev/pandas/pull/52477
agg_df = gb.apply(_agg_helper, spectrum._mt_weights, grouping_cols)
Expand Down

0 comments on commit e289436

Please sign in to comment.