Skip to content

Commit

Permalink
Merge pull request #315 from chrishalcrow/add-wiring-reference-docs
Browse files Browse the repository at this point in the history
Add wiring reference docs
  • Loading branch information
alejoe91 authored Feb 6, 2025
2 parents 223ae23 + 36e89a8 commit 237d439
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions examples/ex_11_automatic_wiring.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,31 +41,35 @@

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

probe.wiring_to_device('H32>RHD2132')
print(probe.device_channel_indices)

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

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


plt.show()

"""
Available wiring "pathways"
---------------------------
The available pathways can be found in the `probeinterface.wiring <>`_ module.
The following pathways are available:
"""
##############################################################################
# Available wiring "pathways"
# ---------------------------
#
# The available pathways can be found in the `probeinterface.wiring <https://github.com/SpikeInterface/probeinterface/blob/main/src/probeinterface/wiring.py>`_ module.
#
# The following pathways are available:
#

from probeinterface import get_available_pathways

print(get_available_pathways())

plt.show()
Binary file added resources/wiring_references/ASSY-116>RHD2132.pdf
Binary file not shown.
Binary file added resources/wiring_references/ASSY-116>RHD2132.xlsx
Binary file not shown.
Binary file added resources/wiring_references/ASSY-156>RHD2164.pdf
Binary file not shown.
Binary file added resources/wiring_references/ASSY-156>RHD2164.xlsx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added resources/wiring_references/H32>RHD2132.pdf
Binary file not shown.
Binary file added resources/wiring_references/H32>RHD2132.xlsx
Binary file not shown.

0 comments on commit 237d439

Please sign in to comment.