Skip to content

Commit baf1287

Browse files
committed
Fix docstrings for extractors module
1 parent d963aa2 commit baf1287

File tree

17 files changed

+44
-27
lines changed

17 files changed

+44
-27
lines changed

doc/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Non-NEO-based
117117
.. autofunction:: read_bids
118118
.. autofunction:: read_cbin_ibl
119119
.. autofunction:: read_combinato
120-
.. autofunction:: read_ibl_streaming_recording
120+
.. autofunction:: read_ibl_recording
121121
.. autofunction:: read_hdsort
122122
.. autofunction:: read_herdingspikes
123123
.. autofunction:: read_kilosort

doc/modules/extractors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ For raw recording formats, we currently support:
125125
* **Biocam HDF5** :py:func:`~spikeinterface.extractors.read_biocam()`
126126
* **CED** :py:func:`~spikeinterface.extractors.read_ced()`
127127
* **EDF** :py:func:`~spikeinterface.extractors.read_edf()`
128-
* **IBL streaming** :py:func:`~spikeinterface.extractors.read_ibl_streaming_recording()`
128+
* **IBL streaming** :py:func:`~spikeinterface.extractors.read_ibl_recording()`
129129
* **Intan** :py:func:`~spikeinterface.extractors.read_intan()`
130130
* **MaxWell** :py:func:`~spikeinterface.extractors.read_maxwell()`
131131
* **MCS H5** :py:func:`~spikeinterface.extractors.read_mcsh5()`

src/spikeinterface/extractors/cbin_ibl.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ class CompressedBinaryIblExtractor(BaseRecording):
2727
load_sync_channel : bool, default: False
2828
Load or not the last channel (sync).
2929
If not then the probe is loaded.
30-
stream_name : str, default: "ap".
30+
stream_name : {"ap", "lp"}, default: "ap".
3131
Whether to load AP or LFP band, one
3232
of "ap" or "lp".
33+
cbin_file : str or None, default None
34+
The cbin file of the recording. If None, searches in `folder_path` for file.
3335
3436
Returns
3537
-------

src/spikeinterface/extractors/herdingspikesextractors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class HerdingspikesSortingExtractor(BaseSorting):
2020
2121
Parameters
2222
----------
23-
folder_path : str or Path
23+
file_path : str or Path
2424
Path to the ALF folder.
2525
load_unit_info : bool, default: True
2626
Whether to load the unit info from the file.

src/spikeinterface/extractors/iblextractors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class IblRecordingExtractor(BaseRecording):
4141
stream_name : str
4242
The name of the stream to load for the session.
4343
These can be retrieved from calling `StreamingIblExtractor.get_stream_names(session="<your session ID>")`.
44-
load_sync_channels : bool, default: false
44+
load_sync_channel : bool, default: false
4545
Load or not the last channel (sync).
4646
If not then the probe is loaded.
4747
cache_folder : str or None, default: None

src/spikeinterface/extractors/neoextractors/alphaomega.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ def map_to_neo_kwargs(cls, folder_path, lsx_files=None):
5050
class AlphaOmegaEventExtractor(NeoBaseEventExtractor):
5151
"""
5252
Class for reading events from AlphaOmega MPX file format
53+
54+
Parameters
55+
----------
56+
folder_path : str or Path-like
57+
The folder path to the AlphaOmega events.
5358
"""
5459

5560
mode = "folder"

src/spikeinterface/extractors/neoextractors/biocam.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ def __init__(
4242
electrode_width=None,
4343
stream_id=None,
4444
stream_name=None,
45-
block_index=None,
4645
all_annotations=False,
4746
):
4847
neo_kwargs = self.map_to_neo_kwargs(file_path)

src/spikeinterface/extractors/neoextractors/blackrock.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class BlackrockRecordingExtractor(NeoBaseRecordingExtractor):
2626
If there are several streams, specify the stream name you want to load.
2727
all_annotations : bool, default: False
2828
Load exhaustively all annotations from neo.
29+
use_names_as_ids : bool or None, default: None
30+
If True, use channel names as IDs. If None, use default IDs.
2931
"""
3032

3133
mode = "file"
@@ -37,7 +39,6 @@ def __init__(
3739
file_path,
3840
stream_id=None,
3941
stream_name=None,
40-
block_index=None,
4142
all_annotations=False,
4243
use_names_as_ids=False,
4344
):

src/spikeinterface/extractors/neoextractors/ced.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ class CedRecordingExtractor(NeoBaseRecordingExtractor):
2323
If there are several streams, specify the stream id you want to load.
2424
stream_name : str, default: None
2525
If there are several streams, specify the stream name you want to load.
26-
block_index : int, default: None
27-
If there are several blocks, specify the block index you want to load.
2826
all_annotations : bool, default: False
2927
Load exhaustively all annotations from neo.
3028
"""

src/spikeinterface/extractors/neoextractors/intan.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class IntanRecordingExtractor(NeoBaseRecordingExtractor):
2727
If True, data that violates integrity assumptions will be loaded. At the moment the only integrity
2828
check we perform is that timestamps are continuous. Setting this to True will ignore this check and set
2929
the attribute `discontinuous_timestamps` to True in the underlying neo object.
30+
use_names_as_ids : bool or None, default: None
31+
If True, use channel names as IDs. If None, use default IDs.
3032
"""
3133

3234
mode = "file"

0 commit comments

Comments
 (0)