Skip to content

Commit

Permalink
MAINT: Add mne.surface to docstring tests (mne-tools#7930)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner authored Jun 25, 2020
1 parent 969c7d8 commit c9064e7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions doc/python_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ Forward Modeling
setup_source_space
setup_volume_source_space
surface.complete_surface_info
surface.read_curvature
use_coil_def
write_bem_surfaces
write_trans
Expand Down
7 changes: 3 additions & 4 deletions mne/surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,16 +626,15 @@ def read_curvature(filepath, binary=True):
Parameters
----------
filepath: str
filepath : str
Input path to the .curv file.
binary: bool
binary : bool
Specify if the output array is to hold binary values. Defaults to True.
Returns
-------
curv: array, shape=(n_vertices,)
curv : array, shape=(n_vertices,)
The curvature values loaded from the user given file.
"""
with open(filepath, "rb") as fobj:
magic = _fread3(fobj)
Expand Down
1 change: 1 addition & 0 deletions mne/tests/test_docstring_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
'mne.simulation',
'mne.source_estimate',
'mne.source_space',
'mne.surface',
'mne.stats',
'mne.time_frequency',
'mne.time_frequency.tfr',
Expand Down

0 comments on commit c9064e7

Please sign in to comment.