You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Question about changing device_channel_indices from str into int #3477
Hi, I used OpenEphys to do recording from a single 32-channel probe. When I used probeinterface to write my probe information, the channel indices must be int. But the channel indices from OpenEphys recording is a string like 'CH1'.
So when I add probe information to my BaseRecording, I meet the error below. Is there a method to change the device_channel_indices into int to match the probe file generated from probeinterface?
Thanks!
It's not automatically matching in that sense. But because the channels are "CH1" -> "CH31" they would match in this case. As a more concrete example if I made my device channel indices [31, 30,29...] instead then it would do the channels in the opposite order ie the first channel in that case would be "CH31". Does that make sense how the process is working? These indices are just like doing indexing in a numpy array.
This is specifically what I was referring to to get you or Chris to help make an illustration (like the one you started for Probe interface ages ago), since our docs just aren't doing this justice. I think we need to visually explain this both with Pandas DFs and an idealized cartoon probe->adaptor->headstage/device.
We can close this since my PR is only tangentially related to this issue. Feel free to open more issues if things come up!
Sadly, I won't be able to jump back into graphics until December because of all the work I have : /
If that is still needed it, happy to help at that point.
No worries, I know you all stay busy. I'm just terrible at art. So we can revisit later if needed :)
Activity
alejoe91 commentedon Oct 15, 2024
Hi!
device_channel_indicesshould be zero-based :) so it should be from 0 to 31Lingsheng-Meng commentedon Oct 15, 2024
That works! Are the device_channel_indices automatically matching '0' to 'CH1' and '31' to 'CH32'?
Thanks for your help!
zm711 commentedon Oct 15, 2024
It's not automatically matching in that sense. But because the channels are "CH1" -> "CH31" they would match in this case. As a more concrete example if I made my device channel indices
[31, 30,29...]instead then it would do the channels in the opposite order ie the first channel in that case would be "CH31". Does that make sense how the process is working? These indices are just like doing indexing in a numpy array.h-mayorquin commentedon Oct 15, 2024
Those are the channel ids (as in identifiers) not the indices of the recording when you think on it as an array.
zm711 commentedon Oct 15, 2024
This is specifically what I was referring to to get you or Chris to help make an illustration (like the one you started for Probe interface ages ago), since our docs just aren't doing this justice. I think we need to visually explain this both with Pandas DFs and an idealized cartoon probe->adaptor->headstage/device.
h-mayorquin commentedon Oct 15, 2024
Sadly, I won't be able to jump back into graphics until December because of all the work I have : /
If that is still needed it, happy to help at that point.
Lingsheng-Meng commentedon Oct 15, 2024
That makes sense. The device channel indices are just indices, not the channel names. Thanks for your help!
zm711 commentedon Oct 15, 2024
We can close this since my PR is only tangentially related to this issue. Feel free to open more issues if things come up!
No worries, I know you all stay busy. I'm just terrible at art. So we can revisit later if needed :)