Skip to content

Commit 969ff60

Browse files
committed
Merge remote-tracking branch 'upstream/main' into patch-3
* upstream/main: MRG: Add "verbose" parameter to pick_channels() method (mne-tools#10544) CI: Avoid bad PySide6 (mne-tools#10545) FIX: Flake (mne-tools#10540)
2 parents 0352a8a + 419ecdb commit 969ff60

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ stages:
110110
- bash: |
111111
set -e
112112
python -m pip install --progress-bar off --upgrade pip setuptools wheel codecov
113-
python -m pip install --progress-bar off mne-qt-browser[opengl] vtk scikit-learn pytest-error-for-skips python-picard PySide6 qtpy
113+
python -m pip install --progress-bar off mne-qt-browser[opengl] vtk scikit-learn pytest-error-for-skips python-picard "PySide6!=6.3.0" qtpy
114114
python -m pip uninstall -yq mne
115115
python -m pip install --progress-bar off --upgrade -e .[test]
116116
displayName: 'Install dependencies with pip'

doc/changes/latest.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Enhancements
2525
~~~~~~~~~~~~
2626
- Add support for ``overview_mode`` in :meth:`raw.plot() <mne.io.Raw.plot>` and related functions/methods (:gh:`10501` by `Eric Larson`_)
2727

28+
- The ``pick_channels`` method gained a ``verbose`` parameter, allowing e.g. to suppress messages about removed projectors (:gh:`10544` by `Richard Höchenberger`_)
29+
2830
Bugs
2931
~~~~
3032
- Fix bug in :func:`mne.io.read_raw_brainvision` when BrainVision data are acquired with the Brain Products "V-Amp" amplifier and disabled lowpass filter is marked with value ``0`` (:gh:`10517` by :newcontrib:`Alessandro Tonin`)

logo/generate_mne_logos.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@
168168
y = np.linspace(-1., 1., h_px // 2)
169169
X, Y = np.meshgrid(x, y)
170170
# initialize figure (no axes, margins, etc)
171-
fig = plt.figure(1, figsize=(w_px / dpi, h_px / dpi), facecolor='k', frameon=False, dpi=dpi)
171+
fig = plt.figure(1, figsize=(w_px / dpi, h_px / dpi), facecolor='k',
172+
frameon=False, dpi=dpi)
172173
ax = plt.Axes(fig, [0., 0., 1., 1.])
173174
ax.set_axis_off()
174175
fig.add_axes(ax)
@@ -199,5 +200,6 @@
199200
ax.set_xlim(xmin - xpad, xl[1] + xpad)
200201
ax.set_ylim(ymax + ypad, ymin - ypad)
201202
plt.draw()
202-
plt.savefig(op.join(static_dir, 'mne_logo_small.svg'), dpi=dpi, transparent=True)
203+
plt.savefig(op.join(static_dir, 'mne_logo_small.svg'),
204+
dpi=dpi, transparent=True)
203205
plt.close()

mne/channels/channels.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,8 @@ def pick_types(self, meg=False, eeg=False, stim=False, eog=False,
692692

693693
return self
694694

695-
def pick_channels(self, ch_names, ordered=False):
695+
@verbose
696+
def pick_channels(self, ch_names, ordered=False, *, verbose=None):
696697
"""Pick some channels.
697698
698699
Parameters
@@ -704,6 +705,9 @@ def pick_channels(self, ch_names, ordered=False):
704705
the modified instance matches the order of ``ch_names``.
705706
706707
.. versionadded:: 0.20.0
708+
%(verbose)s
709+
710+
.. versionadded:: 1.1
707711
708712
Returns
709713
-------

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ h5io
99
packaging
1010
pymatreader
1111
qtpy
12-
pyside6
12+
PySide6!=6.3.0
1313
pyobjc-framework-Cocoa>=5.2.0; platform_system=="Darwin"
1414
sip
1515
scikit-learn

0 commit comments

Comments
 (0)