Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Oct 16, 2023
1 parent 89c46cc commit 3fb3c69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion nilearn/_utils/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def custom_function(vertices):
Path where data should be downloaded.
By default, files are downloaded in a ``nilearn_data`` folder
in the home directory of the user.
See also :func:`nilearn.datasets.utils.get_data_dirs`.
See also ``nilearn.datasets.utils.get_data_dirs``.
"""

# detrend
Expand Down
13 changes: 6 additions & 7 deletions nilearn/glm/first_level/first_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,31 +499,31 @@ def fit(
the affine is considered the same for all.
events : pandas Dataframe or string or list of pandas DataFrames \
or strings, optional
or strings, default=None
:term:`fMRI` events used to build design matrices.
One events object expected per run_img.
Ignored in case designs is not None.
If string, then a path to a csv file is expected.
confounds : pandas Dataframe, numpy array or string or
list of pandas DataFrames, numpy arrays or strings, optional
confounds : pandas Dataframe, numpy array or string or \
list of pandas DataFrames, numpy arrays or strings, \
default=None
Each column in a DataFrame corresponds to a confound variable
to be included in the regression model of the respective run_img.
The number of rows must match the number of volumes in the
respective run_img. Ignored in case designs is not None.
If string, then a path to a csv file is expected.
sample_masks : array_like, or list of array_like, default=None
shape of array:
(number of scans - number of volumes remove)
shape of array: (number of scans - number of volumes remove)
Indices of retained volumes. Masks the niimgs along time/fourth
dimension to perform scrubbing (remove volumes with high motion)
and/or remove non-steady-state volumes.
.. versionadded:: 0.9.2
design_matrices : pandas DataFrame or \
list of pandas DataFrames, optional
list of pandas DataFrames, default=None
Design matrices that will be used to fit the GLM. If given it
takes precedence over events and confounds.
Expand All @@ -533,7 +533,6 @@ def fit(
then adaptive quantification is performed and the coefficients
will be clustered via K-means with `bins` number of clusters.
"""
# Initialize masker_ to None such that attribute exists
self.masker_ = None
Expand Down

0 comments on commit 3fb3c69

Please sign in to comment.