Skip to content

Commit 880b413

Browse files
user27182zEdS15B3GCwq
authored andcommitted
MAINT: Use radius keyword with PyVista tube (mne-tools#13277)
1 parent 40306ba commit 880b413

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

doc/changes/devel/13277.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update :func:`mne.viz.plot_alignment` and related functions to support PyVista deprecation of positional arguments by :newcontrib:`user27182`.

doc/changes/names.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@
318318
.. _Toomas Erik Anijärv: https://www.toomaserikanijarv.com/
319319
.. _Tristan Stenner: https://github.com/tstenner/
320320
.. _Tziona NessAiver: https://github.com/TzionaN
321+
.. _user27182: https://github.com/user27182
321322
.. _Valerii Chirkov: https://github.com/vagechirkov
322323
.. _Velu Prabhakar Kumaravel: https://github.com/vpKumaravel
323324
.. _Victor Ferat: https://github.com/vferat

mne/viz/backends/_pyvista.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ def tube(
594594
color = None
595595
else:
596596
scalars = None
597-
tube = line.tube(radius, n_sides=self.tube_n_sides)
597+
tube = line.tube(radius=radius, n_sides=self.tube_n_sides)
598598
actor = _add_mesh(
599599
plotter=self.plotter,
600600
mesh=tube,

0 commit comments

Comments
 (0)