Skip to content

Commit 237d439

Browse files
authored
Merge pull request #315 from chrishalcrow/add-wiring-reference-docs
Add wiring reference docs
2 parents 223ae23 + 36e89a8 commit 237d439

13 files changed

Lines changed: 16 additions & 12 deletions

examples/ex_11_automatic_wiring.py

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,31 +41,35 @@
4141

4242
##############################################################################
4343
# In order to ease this process, `probeinterface` also includes some commonly
44-
# used wirings based on standard connectors. In our case, we can simply use:
44+
# used wirings based on standard connectors. We created references and spreadsheets
45+
# showing how these wirings are computed at `probeinterface/resources/wiring_references
46+
# <https://github.com/SpikeInterface/probeinterface/tree/9776684948e3ceba71601e5c0f90c2672f665234/resources>`_.
47+
# If we have a Intan RHD2132 Headstage attached to a NeuroNexus H32 Connector, we can
48+
# import this wiring as follows:
4549

4650
probe.wiring_to_device('H32>RHD2132')
4751
print(probe.device_channel_indices)
4852

4953
##############################################################################
5054
# In this figure we have 2 numbers for each contact:
51-
# * the upper number "prbXX" is the Neuronexus index (one-based)
55+
# * the upper number "prbXX" is the contact id (one-based, from NeuroNexus)
5256
# * the lower "devXX" is the channel on the Intan device (zero-based)
5357

5458
fig, ax = plt.subplots(figsize=(5, 15))
5559
plot_probe(probe, with_contact_id=True, with_device_index=True, ax=ax)
5660

5761

58-
plt.show()
59-
60-
"""
61-
Available wiring "pathways"
62-
---------------------------
63-
64-
The available pathways can be found in the `probeinterface.wiring <>`_ module.
65-
66-
The following pathways are available:
67-
"""
62+
##############################################################################
63+
# Available wiring "pathways"
64+
# ---------------------------
65+
#
66+
# The available pathways can be found in the `probeinterface.wiring <https://github.com/SpikeInterface/probeinterface/blob/main/src/probeinterface/wiring.py>`_ module.
67+
#
68+
# The following pathways are available:
69+
#
6870

6971
from probeinterface import get_available_pathways
7072

7173
print(get_available_pathways())
74+
75+
plt.show()
195 KB
Binary file not shown.
4.99 KB
Binary file not shown.
422 KB
Binary file not shown.
5.35 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)