Beispiel #1
0
def test_wire_probe():

    manufacturer = 'neuronexus'
    probe_name = 'A1x32-Poly3-10mm-50-177'
    probe = get_probe(manufacturer, probe_name)

    probe.wiring_to_device('H32>RHD2132')

    plot_probe(probe, with_channel_index=True)

    manufacturer = 'cambridgeneurotech'
    probe_name = 'ASSY-156-P-1'
    probe = get_probe(manufacturer, probe_name)

    probe.wiring_to_device('ASSY-156>RHD2164')

    plot_probe(probe, with_channel_index=True)
Beispiel #2
0
def test_wire_probe():
    
    manufacturer = 'neuronexus'
    probe_name = 'A1x32-Poly3-10mm-50-177'
    probe = get_probe(manufacturer, probe_name)
    
    probe.wiring_to_device('H32>RHD')
    
    plot_probe(probe, with_channel_index=True)
Beispiel #3
0
##############################################################################
from pprint import pprint

import numpy as np
import matplotlib.pyplot as plt

from probeinterface import Probe, get_probe
from probeinterface.plotting import plot_probe

##############################################################################
#  Download one probe:

manufacturer = 'neuronexus'
probe_name = 'A1x32-Poly3-10mm-50-177'

probe = get_probe(manufacturer, probe_name)
print(probe)

##############################################################################
# Files from the library also contain annotations specific to manufacturers.
# We can see here that Neuronexus probes have contact indices starting at "1" (one-based)

pprint(probe.annotations)

##############################################################################
# When plotting, the channel indices are automatically displayed with
# one-based notation (even if internally everything is still zero based):

plot_probe(probe, with_channel_index=True)

##############################################################################
Beispiel #4
0
###############################################################################
# This genertor already contain a probe object you can retreive directly an plot

probe = recording.get_probe()
print(probe)
from probeinterface.plotting import plot_probe
plot_probe(probe)

###############################################################################
#  You can also change the probe
# In that case you need to manually make the wiring
# Lets use a probe from cambridgeneurotech with 32ch

from probeinterface import get_probe
other_probe = get_probe('cambridgeneurotech', 'ASSY-37-E-1')
print(other_probe)
other_probe.set_device_channel_indices(np.arange(32))
recording_2_shanks = recording.set_probe(other_probe, group_mode='by_shank')
plot_probe(recording_2_shanks.get_probe())

###############################################################################
# Now let's check what we have loaded.
# The `group_mode='by_shank'`  have set the 'group' property automatically
# we can use it to split the recording in 2 small ones

print(recording_2_shanks)
print(recording_2_shanks.get_property('group'))

rec0, rec1 = recording_2_shanks.split_by(property='group')
print(rec0)