Closed zm711 closed 9 months ago
Hi @zm711
deepcopy
, you can use probe1 = probe.copy()
wiring = pi.wiring.pathways["ASSY-77>Adpt.A64-Om32_2x-sm-NN>RHD2164"]
wiring_group = wiring + list(np.array(wiring) + 64)
multishank = pi.ProbeGroup()
multishank.add_probe(probe)
multishank.add_probe(probe1)
multishank.set_global_device_channel_indices(wiring_group)
Thanks @alejoe91, I will try that as soon my raw file is done reading and close when I test :). Thanks, I figured you guys would have an easier way to do rather than hacking my way through it.
@alejoe91, the clone()
is failing?
probe1 = probe.clone()
Traceback (most recent call last):
Cell In[8], line 1
probe1 = probe.clone()
AttributeError: 'Probe' object has no attribute 'clone'
pi.__version__
Out[9]: '0.2.19'
Is it suppose to be probe.copy()
instead?
Is it suppose to be
probe.copy()
instead?
Yes! Sorry about that! (I'll edit my comment so that it's clearer)
Cool cool. I'm running the sorting now, but seems to be working and is way simpler. Thanks @alejoe91 :)
Quick question about making probe groups with Cambridge neurotech probes. Cambridge neurotech allows people to buy a probe, eg an H7, or to buy same probe double so two H7s glued together. Currently I make probe, wire it and then since the other probe is an exact duplicate I just deep copy that probe. Then I
set_device_indices
as the same as the original probe but offset by the appropriate number of channels (& do the same for the contact numbers. Then I add the original probe and the duplicated (but offset probe) to a probegroup.Is there a smarter way to do this?
Then I just sort by
probe_group
in spikeinterface. But if there is an easier way to do this I would be happy to switch this or if I made a wrong step I would also be super happy to be corrected!