@@ -420,86 +420,58 @@ def reset_warnings(gallery_conf, fname):
420420# XXX This hack defines what extra methods numpydoc will document
421421docscrape .ClassDoc .extra_public_methods = mne .utils ._doc_special_members
422422numpydoc_class_members_toctree = False
423+ numpydoc_attributes_as_param_list = False
423424numpydoc_xref_param_type = True
424425numpydoc_xref_aliases = {
425- 'None' : ':data:`python:None`' ,
426- 'bool' : ':ref:`bool <python:bltin-boolean-values>`' ,
427- 'boolean' : ':ref:`bool <python:bltin-boolean-values>`' ,
428- 'True' : ':data:`python:True`' ,
429- 'False' : ':data:`python:False`' ,
430- 'list' : ':class:`python:list`' ,
431- 'tuple' : ':class:`python:tuple`' ,
432- 'str' : ':class:`python:str`' ,
433- 'string' : ':class:`python:str`' ,
434- 'dict' : ':class:`python:dict`' ,
435- 'float' : ':class:`python:float`' ,
436- 'int' : ':class:`python:int`' ,
437- 'callable' : ':func:`callable <python:callable>`' ,
438- 'iterable' : ':term:`python:iterable`' ,
439- 'contextmanager' : ':func:`python:contextlib.contextmanager`' ,
440- 'namedtuple' : ':func:`python:collections.namedtuple`' ,
441- 'generator' : ':term:`python:generator`' ,
442- # NumPy
443- 'array' : '~numpy.ndarray' ,
444- 'ndarray' : '~numpy.ndarray' ,
445- 'np.ndarray' : '~numpy.ndarray' ,
446- 'array-like' : ':term:`numpy:array_like`' ,
447- 'array_like' : ':term:`numpy:array_like`' ,
448- 'scalar' : ':ref:`scalar <numpy:arrays.scalars>`' ,
449- 'RandomState' : '~numpy.random.RandomState' ,
450- 'np.random.RandomState' : '~numpy.random.RandomState' ,
451- 'np.inf' : ':data:`~numpy.inf`' ,
452- # 'numpy': ':mod:`numpy`',
453426 # Matplotlib
454427 'colormap' : ':doc:`colormap <matplotlib:tutorials/colors/colormaps>`' ,
455428 'color' : ':doc:`color <matplotlib:api/colors_api>`' ,
456429 'collection' : ':doc:`collections <matplotlib:api/collections_api>`' ,
457- 'Axes' : '~ matplotlib.axes.Axes' ,
458- 'Figure' : '~ matplotlib.figure.Figure' ,
459- 'Axes3D' : '~ mpl_toolkits.mplot3d.axes3d.Axes3D' ,
430+ 'Axes' : 'matplotlib.axes.Axes' ,
431+ 'Figure' : 'matplotlib.figure.Figure' ,
432+ 'Axes3D' : 'mpl_toolkits.mplot3d.axes3d.Axes3D' ,
460433 # Mayavi
461434 'mayavi.mlab.Figure' : 'mayavi.core.api.Scene' ,
462435 'mlab.Figure' : 'mayavi.core.api.Scene' ,
463436 # sklearn
464- 'LeaveOneOut' : '~sklearn.model_selection.LeaveOneOut' ,
465- 'sklearn.model_selection' : ':mod:`sklearn.model_selection`' ,
437+ 'LeaveOneOut' : 'sklearn.model_selection.LeaveOneOut' ,
466438 # nibabel
467- 'Nifti1Image' : '~ nibabel.nifti1.Nifti1Image' ,
468- 'Nifti2Image' : '~ nibabel.nifti2.Nifti2Image' ,
439+ 'Nifti1Image' : 'nibabel.nifti1.Nifti1Image' ,
440+ 'Nifti2Image' : 'nibabel.nifti2.Nifti2Image' ,
469441 # MNE
470- 'Label' : '~ mne.Label' , 'Forward' : '~ mne.Forward' , 'Evoked' : '~ mne.Evoked' ,
471- 'Info' : '~ mne.Info' , 'SourceSpaces' : '~ mne.SourceSpaces' ,
472- 'Epochs' : '~ mne.Epochs' , 'Layout' : '~ mne.channels.Layout' ,
473- 'EvokedArray' : '~ mne.EvokedArray' , 'BiHemiLabel' : '~ mne.BiHemiLabel' ,
474- 'AverageTFR' : '~ mne.time_frequency.AverageTFR' ,
475- 'EpochsTFR' : '~ mne.time_frequency.EpochsTFR' ,
476- 'Raw' : '~ mne.io.Raw' , 'ICA' : '~ mne.preprocessing.ICA' ,
477- 'Covariance' : '~ mne.Covariance' , 'Annotations' : '~ mne.Annotations' ,
478- 'Montage' : '~ mne.channels.Montage' ,
479- 'DigMontage' : '~ mne.channels.DigMontage' ,
480- 'VectorSourceEstimate' : '~ mne.VectorSourceEstimate' ,
481- 'VolSourceEstimate' : '~ mne.VolSourceEstimate' ,
482- 'VolVectorSourceEstimate' : '~ mne.VolVectorSourceEstimate' ,
483- 'MixedSourceEstimate' : '~ mne.MixedSourceEstimate' ,
484- 'SourceEstimate' : '~ mne.SourceEstimate' , 'Projection' : '~ mne.Projection' ,
485- 'ConductorModel' : '~ mne.bem.ConductorModel' ,
486- 'Dipole' : '~ mne.Dipole' , 'DipoleFixed' : '~ mne.DipoleFixed' ,
487- 'InverseOperator' : '~ mne.minimum_norm.InverseOperator' ,
488- 'CrossSpectralDensity' : '~ mne.time_frequency.CrossSpectralDensity' ,
489- 'RtEpochs' : '~ mne.realtime.RtEpochs' ,
490- 'SourceMorph' : '~ mne.SourceMorph' ,
491- 'Xdawn' : '~ mne.preprocessing.Xdawn' ,
492- 'Report' : '~ mne.Report' , 'Forward' : '~ mne.Forward' ,
493- 'TimeDelayingRidge' : '~ mne.decoding.TimeDelayingRidge' ,
494- 'Vectorizer' : '~ mne.decoding.Vectorizer' ,
495- 'UnsupervisedSpatialFilter' : '~ mne.decoding.UnsupervisedSpatialFilter' ,
496- 'TemporalFilter' : '~ mne.decoding.TemporalFilter' ,
497- 'Scaler' : '~ mne.decoding.Scaler' , 'SPoC' : '~ mne.decoding.SPoC' ,
498- 'PSDEstimator' : '~ mne.decoding.PSDEstimator' ,
499- 'LinearModel' : '~ mne.decoding.LinearModel' ,
500- 'FilterEstimator' : '~ mne.decoding.FilterEstimator' ,
501- 'EMS' : '~ mne.decoding.EMS' , 'CSP' : '~ mne.decoding.CSP' ,
502- 'Beamformer' : '~ mne.beamformer.Beamformer' ,
442+ 'Label' : 'mne.Label' , 'Forward' : 'mne.Forward' , 'Evoked' : 'mne.Evoked' ,
443+ 'Info' : 'mne.Info' , 'SourceSpaces' : 'mne.SourceSpaces' ,
444+ 'Epochs' : 'mne.Epochs' , 'Layout' : 'mne.channels.Layout' ,
445+ 'EvokedArray' : 'mne.EvokedArray' , 'BiHemiLabel' : 'mne.BiHemiLabel' ,
446+ 'AverageTFR' : 'mne.time_frequency.AverageTFR' ,
447+ 'EpochsTFR' : 'mne.time_frequency.EpochsTFR' ,
448+ 'Raw' : 'mne.io.Raw' , 'ICA' : 'mne.preprocessing.ICA' ,
449+ 'Covariance' : 'mne.Covariance' , 'Annotations' : 'mne.Annotations' ,
450+ 'Montage' : 'mne.channels.Montage' ,
451+ 'DigMontage' : 'mne.channels.DigMontage' ,
452+ 'VectorSourceEstimate' : 'mne.VectorSourceEstimate' ,
453+ 'VolSourceEstimate' : 'mne.VolSourceEstimate' ,
454+ 'VolVectorSourceEstimate' : 'mne.VolVectorSourceEstimate' ,
455+ 'MixedSourceEstimate' : 'mne.MixedSourceEstimate' ,
456+ 'SourceEstimate' : 'mne.SourceEstimate' , 'Projection' : 'mne.Projection' ,
457+ 'ConductorModel' : 'mne.bem.ConductorModel' ,
458+ 'Dipole' : 'mne.Dipole' , 'DipoleFixed' : 'mne.DipoleFixed' ,
459+ 'InverseOperator' : 'mne.minimum_norm.InverseOperator' ,
460+ 'CrossSpectralDensity' : 'mne.time_frequency.CrossSpectralDensity' ,
461+ 'RtEpochs' : 'mne.realtime.RtEpochs' ,
462+ 'SourceMorph' : 'mne.SourceMorph' ,
463+ 'Xdawn' : 'mne.preprocessing.Xdawn' ,
464+ 'Report' : 'mne.Report' , 'Forward' : 'mne.Forward' ,
465+ 'TimeDelayingRidge' : 'mne.decoding.TimeDelayingRidge' ,
466+ 'Vectorizer' : 'mne.decoding.Vectorizer' ,
467+ 'UnsupervisedSpatialFilter' : 'mne.decoding.UnsupervisedSpatialFilter' ,
468+ 'TemporalFilter' : 'mne.decoding.TemporalFilter' ,
469+ 'Scaler' : 'mne.decoding.Scaler' , 'SPoC' : 'mne.decoding.SPoC' ,
470+ 'PSDEstimator' : 'mne.decoding.PSDEstimator' ,
471+ 'LinearModel' : 'mne.decoding.LinearModel' ,
472+ 'FilterEstimator' : 'mne.decoding.FilterEstimator' ,
473+ 'EMS' : 'mne.decoding.EMS' , 'CSP' : 'mne.decoding.CSP' ,
474+ 'Beamformer' : 'mne.beamformer.Beamformer' ,
503475}
504476numpydoc_xref_ignore = {
505477 # words
@@ -516,7 +488,7 @@ def reset_warnings(gallery_conf, fname):
516488 'n_parts' , 'n_features_new' , 'n_components' , 'n_labels' , 'n_events_in' ,
517489 'n_splits' , 'n_scores' , 'n_outputs' , 'n_trials' , 'n_estimators' , 'n_tasks' ,
518490 'nd_features' , 'n_classes' , 'n_targets' , 'n_slices' , 'n_hpi' , 'n_fids' ,
519- 'n_elp' , 'n_pts' , 'n_tris' , 'n_nodes' , 'n_nonzero' ,
491+ 'n_elp' , 'n_pts' , 'n_tris' , 'n_nodes' , 'n_nonzero' , 'n_events_out' ,
520492 # Undocumented (on purpose)
521493 'RawKIT' , 'RawEximia' , 'RawEGI' , 'RawEEGLAB' , 'RawEDF' , 'RawCTF' , 'RawBTi' ,
522494 'RawBrainVision' ,
0 commit comments