Skip to content

Commit 2a9668d

Browse files
deploy stub files [ci skip] (#247)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 40794c7 commit 2a9668d

File tree

15 files changed

+176
-176
lines changed

15 files changed

+176
-176
lines changed

mne_icalabel/annotation/bids.pyi

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from pathlib import Path as Path
1+
from pathlib import Path
22

33
from mne.preprocessing import ICA
44

@@ -16,9 +16,9 @@ def write_components_tsv(ica: ICA, fname: str | Path):
1616
Parameters
1717
----------
1818
ica : ICA
19-
An instance of the fitted ICA.
19+
An instance of the fitted ICA.
2020
fname : str | Path
21-
The output filename.
21+
The output filename.
2222
2323
Notes
2424
-----
@@ -45,20 +45,20 @@ def mark_component(
4545
Parameters
4646
----------
4747
component : int
48-
The component to mark.
48+
The component to mark.
4949
fname : Union[str, Path]
50-
The filename for the BIDS filepath.
50+
The filename for the BIDS filepath.
5151
method : str
52-
The method to use. Must be 'manual', or one of ['iclabel'].
52+
The method to use. Must be 'manual', or one of ['iclabel'].
5353
label : str
54-
The label of the ICA component. Must be one of ['brain',
55-
'muscle artifact', 'eye blink', 'heart beat', 'line noise',
56-
'channel noise', 'other'].
54+
The label of the ICA component. Must be one of ['brain',
55+
'muscle artifact', 'eye blink', 'heart beat', 'line noise',
56+
'channel noise', 'other'].
5757
author : str
58-
The annotating author.
58+
The annotating author.
5959
strict_label : bool
60-
Whether to raise an error if ``label`` is not an accepted value.
61-
Default is True.
60+
Whether to raise an error if ``label`` is not an accepted value.
61+
Default is True.
6262
6363
Notes
6464
-----

mne_icalabel/config.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from collections.abc import Callable
1+
from collections.abc import Callable as Callable
22

33
from .iclabel import iclabel_label_components as iclabel_label_components
44

mne_icalabel/datasets/icalabel/icalabel.pyi

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,30 @@ def data_path(
1818
Parameters
1919
----------
2020
path : None | str
21-
Location of where to look for the dataset.
22-
If None, the environment variable or config parameter is used.
23-
If it doesn’t exist, the “~/mne_data” directory is used.
24-
If the dataset is not found under the given path,
25-
the data will be automatically downloaded to the specified folder.
21+
Location of where to look for the dataset.
22+
If None, the environment variable or config parameter is used.
23+
If it doesn’t exist, the “~/mne_data” directory is used.
24+
If the dataset is not found under the given path,
25+
the data will be automatically downloaded to the specified folder.
2626
force_update : bool
27-
Force update of the dataset even if a local copy exists.
27+
Force update of the dataset even if a local copy exists.
2828
update_path : bool
29-
If True, set the MNE_DATASETS_FNIRSMOTORGROUP_PATH in
30-
mne-python config to the given path.
29+
If True, set the MNE_DATASETS_FNIRSMOTORGROUP_PATH in
30+
mne-python config to the given path.
3131
download : bool
32-
If False and the dataset has not been downloaded yet,
33-
it will not be downloaded and the path will be returned
34-
as ``‘’`` (empty string). This is mostly used for debugging purposes
35-
and can be safely ignored by most users.
32+
If False and the dataset has not been downloaded yet,
33+
it will not be downloaded and the path will be returned
34+
as ``‘’`` (empty string). This is mostly used for debugging purposes
35+
and can be safely ignored by most users.
3636
3737
verbose : bool | str | int | None
38-
Control verbosity of the logging output. If ``None``, use the default
39-
verbosity level. See the :ref:`logging documentation <tut-logging>` and
40-
:func:`mne.verbose` for details. Should only be passed as a keyword
41-
argument.
38+
Control verbosity of the logging output. If ``None``, use the default
39+
verbosity level. See the :ref:`logging documentation <tut-logging>` and
40+
:func:`mne.verbose` for details. Should only be passed as a keyword
41+
argument.
4242
4343
Returns
4444
-------
4545
path : Path
46-
Path to dataset directory.
46+
Path to dataset directory.
4747
"""

mne_icalabel/features/topomap.pyi

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -20,42 +20,42 @@ def get_topomaps(
2020
Parameters
2121
----------
2222
ica : ICA
23-
MNE `~mne.preprocessing.ICA` decomposition.
23+
MNE `~mne.preprocessing.ICA` decomposition.
2424
picks : int | list of int | slice | None
25-
Indices of the independent components (ICs) to select.
26-
If an integer, represents the index of the IC to pick.
27-
Multiple ICs can be selected using a list of int or a slice.
28-
The indices are 0-indexed, so ``picks=1`` will pick the second IC: ``ICA001``.
29-
``None`` (default) will pick all independent components in the order fitted.
25+
Indices of the independent components (ICs) to select.
26+
If an integer, represents the index of the IC to pick.
27+
Multiple ICs can be selected using a list of int or a slice.
28+
The indices are 0-indexed, so ``picks=1`` will pick the second IC: ``ICA001``.
29+
``None`` (default) will pick all independent components in the order fitted.
3030
res : int
31-
The resolution of the square topographic map (in pixels).
31+
The resolution of the square topographic map (in pixels).
3232
image_interp : str
33-
The image interpolation to be used. All matplotlib options are
34-
accepted.
33+
The image interpolation to be used. All matplotlib options are
34+
accepted.
3535
border : float | 'mean'
36-
Value to extrapolate to on the topomap borders. If ``'mean'`` (default),
37-
then each extrapolated point has the average value of its neighbours.
36+
Value to extrapolate to on the topomap borders. If ``'mean'`` (default),
37+
then each extrapolated point has the average value of its neighbours.
3838
extrapolate : str
39-
Options:
39+
Options:
4040
41-
- ``'box'``
42-
Extrapolate to four points placed to form a square encompassing all
43-
data points, where each side of the square is three times the range
44-
of the data in the respective dimension.
45-
- ``'local'`` (default for MEG sensors)
46-
Extrapolate only to nearby points (approximately to points closer than
47-
median inter-electrode distance). This will also set the
48-
mask to be polygonal based on the convex hull of the sensors.
49-
- ``'head'`` (default for non-MEG sensors)
50-
Extrapolate out to the edges of the clipping circle. This will be on
51-
the head circle when the sensors are contained within the head circle,
52-
but it can extend beyond the head when sensors are plotted outside
53-
the head circle.
41+
- ``'box'``
42+
Extrapolate to four points placed to form a square encompassing all
43+
data points, where each side of the square is three times the range
44+
of the data in the respective dimension.
45+
- ``'local'`` (default for MEG sensors)
46+
Extrapolate only to nearby points (approximately to points closer than
47+
median inter-electrode distance). This will also set the
48+
mask to be polygonal based on the convex hull of the sensors.
49+
- ``'head'`` (default for non-MEG sensors)
50+
Extrapolate out to the edges of the clipping circle. This will be on
51+
the head circle when the sensors are contained within the head circle,
52+
but it can extend beyond the head when sensors are plotted outside
53+
the head circle.
5454
5555
Returns
5656
-------
5757
topomaps : dict of array of shape (n_components, n_pixels, n_pixels)
58-
Dictionary of ICs topographic maps for each channel type.
58+
Dictionary of ICs topographic maps for each channel type.
5959
"""
6060

6161
@fill_doc
@@ -72,37 +72,37 @@ def _get_topomap_array(
7272
Parameters
7373
----------
7474
data : array of shape (n_channels,)
75-
The data points used to generate the topographic map.
75+
The data points used to generate the topographic map.
7676
info : Info
77-
Instance of `mne.Info` with the montage associated with the ``(n_channels,)``
78-
points.
77+
Instance of `mne.Info` with the montage associated with the ``(n_channels,)``
78+
points.
7979
res : int
80-
The resolution of the square topographic map (in pixels).
80+
The resolution of the square topographic map (in pixels).
8181
image_interp : str
82-
The image interpolation to be used. All matplotlib options are
83-
accepted.
82+
The image interpolation to be used. All matplotlib options are
83+
accepted.
8484
border : float | 'mean'
85-
Value to extrapolate to on the topomap borders. If ``'mean'`` (default),
86-
then each extrapolated point has the average value of its neighbours.
85+
Value to extrapolate to on the topomap borders. If ``'mean'`` (default),
86+
then each extrapolated point has the average value of its neighbours.
8787
extrapolate : str
88-
Options:
88+
Options:
8989
90-
- ``'box'``
91-
Extrapolate to four points placed to form a square encompassing all
92-
data points, where each side of the square is three times the range
93-
of the data in the respective dimension.
94-
- ``'local'`` (default for MEG sensors)
95-
Extrapolate only to nearby points (approximately to points closer than
96-
median inter-electrode distance). This will also set the
97-
mask to be polygonal based on the convex hull of the sensors.
98-
- ``'head'`` (default for non-MEG sensors)
99-
Extrapolate out to the edges of the clipping circle. This will be on
100-
the head circle when the sensors are contained within the head circle,
101-
but it can extend beyond the head when sensors are plotted outside
102-
the head circle.
90+
- ``'box'``
91+
Extrapolate to four points placed to form a square encompassing all
92+
data points, where each side of the square is three times the range
93+
of the data in the respective dimension.
94+
- ``'local'`` (default for MEG sensors)
95+
Extrapolate only to nearby points (approximately to points closer than
96+
median inter-electrode distance). This will also set the
97+
mask to be polygonal based on the convex hull of the sensors.
98+
- ``'head'`` (default for non-MEG sensors)
99+
Extrapolate out to the edges of the clipping circle. This will be on
100+
the head circle when the sensors are contained within the head circle,
101+
but it can extend beyond the head when sensors are plotted outside
102+
the head circle.
103103
104104
Returns
105105
-------
106106
topomap : array of shape (n_pixels, n_pixels)
107-
Topographic map array.
107+
Topographic map array.
108108
"""

mne_icalabel/gui/__init__.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ def label_ica_components(inst, ica: ICA, show: bool = True, block: bool = False)
66
Parameters
77
----------
88
inst : Raw | Epochs
9-
`~mne.io.Raw` or `~mne.Epochs` instance used to fit the `~mne.preprocessing.ICA`
10-
decomposition.
9+
`~mne.io.Raw` or `~mne.Epochs` instance used to fit the `~mne.preprocessing.ICA`
10+
decomposition.
1111
ica : ICA
12-
The ICA object fitted on ``inst``.
12+
The ICA object fitted on ``inst``.
1313
show : bool
14-
Show the GUI if True.
14+
Show the GUI if True.
1515
block : bool
16-
Whether to halt program execution until the figure is closed.
16+
Whether to halt program execution until the figure is closed.
1717
1818
Returns
1919
-------
2020
gui : instance of ICAComponentLabeler
21-
The graphical user interface (GUI) window.
21+
The graphical user interface (GUI) window.
2222
"""

mne_icalabel/gui/_label_components.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ class ICAComponentLabeler(QMainWindow):
4242
self._components_listWidget
4343
self._labels_buttonGroup
4444
self._mpl_widgets (dict)
45-
- topomap
46-
- psd
45+
- topomap
46+
- psd
4747
self._timeSeries_widget
4848
4949
Matplotlib figures
5050
------------------
5151
self._mpl_figures (dict)
52-
- topomap
53-
- psd
52+
- topomap
53+
- psd
5454
"""
5555

5656
@staticmethod

mne_icalabel/iclabel/_utils.pyi

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ def _mne_to_eeglab_locs(
1414
Parameters
1515
----------
1616
raw : mne.io.BaseRaw
17-
Instance of raw object with a `mne.montage.DigMontage` set with
18-
``n_channels`` channel positions.
17+
Instance of raw object with a `mne.montage.DigMontage` set with
18+
``n_channels`` channel positions.
1919
picks : list of str
20-
List of channel names to include.
20+
List of channel names to include.
2121
2222
Returns
2323
-------
2424
Rd : np.array of shape (1, n_channels)
25-
Angle in spherical coordinates of each EEG channel.
25+
Angle in spherical coordinates of each EEG channel.
2626
Th : np.array of shape (1, n_channels)
27-
Degree in spherical coordinates of each EEG channel.
27+
Degree in spherical coordinates of each EEG channel.
2828
"""
2929

3030
def _pol2cart(
@@ -35,9 +35,9 @@ def _pol2cart(
3535
Parameters
3636
----------
3737
theta : array
38-
angle
38+
angle
3939
rho : array
40-
magnitude
40+
magnitude
4141
"""
4242

4343
def _next_power_of_2(x) -> int:
@@ -51,15 +51,15 @@ def _gdatav4(
5151
Parameters
5252
----------
5353
x : array
54-
x-coordinates
54+
x-coordinates
5555
y : array
56-
y-coordinates
56+
y-coordinates
5757
v : array
58-
values
58+
values
5959
xq : array
60-
x-grid
60+
x-grid
6161
yq : array
62-
y-grid
62+
y-grid
6363
6464
Returns
6565
-------
@@ -83,11 +83,11 @@ def _mergepoints2D(
8383
Parameters
8484
----------
8585
x : array
86-
x-coordinates
86+
x-coordinates
8787
y : array
88-
y-coordinates
88+
y-coordinates
8989
v : array
90-
values
90+
values
9191
9292
Returns
9393
-------

0 commit comments

Comments
 (0)