Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when loading data where channels are on half a shank #135

Open
Andrianarivelo opened this issue Feb 7, 2025 · 1 comment
Open

Comments

@Andrianarivelo
Copy link

Hello,

I recorded data with NPX 2.0 but I choose channels on half of each shank. I attached an image of my channel map so you have an idea of my configuration.

I did the histology alignment with ap_histology, prepared the data for the gui but when loading the data, I got the following error :

Traceback (most recent call last):
  File "D:\int-brain-lab\iblapps\atlaselectrophysiology\ephys_atlas_gui.py", line 1249, in data_button_pressed
    self.loaddata.get_data()
  File "d:\int-brain-lab\iblapps\atlaselectrophysiology\load_data_local.py", line 98, in get_data
    shanks[iShank] = [chn_x[iShank * 2], chn_x[(iShank * 2) + 1]]
IndexError: index 5 is out of bounds for axis 0 with size 5
Traceback (most recent call last):
  File "D:\int-brain-lab\iblapps\atlaselectrophysiology\ephys_atlas_gui.py", line 1249, in data_button_pressed
    self.loaddata.get_data()
  File "d:\int-brain-lab\iblapps\atlaselectrophysiology\load_data_local.py", line 98, in get_data
    shanks[iShank] = [chn_x[iShank * 2], chn_x[(iShank * 2) + 1]]
IndexError: index 5 is out of bounds for axis 0 with size 5
Traceback (most recent call last):
  File "D:\int-brain-lab\iblapps\atlaselectrophysiology\ephys_atlas_gui.py", line 1249, in data_button_pressed
    self.loaddata.get_data()
  File "d:\int-brain-lab\iblapps\atlaselectrophysiology\load_data_local.py", line 98, in get_data
    shanks[iShank] = [chn_x[iShank * 2], chn_x[(iShank * 2) + 1]]
IndexError: index 5 is out of bounds for axis 0 with size 5
Traceback (most recent call last):
  File "D:\int-brain-lab\iblapps\atlaselectrophysiology\ephys_atlas_gui.py", line 1249, in data_button_pressed
    self.loaddata.get_data()
  File "d:\int-brain-lab\iblapps\atlaselectrophysiology\load_data_local.py", line 98, in get_data
    shanks[iShank] = [chn_x[iShank * 2], chn_x[(iShank * 2) + 1]]
IndexError: index 5 is out of bounds for axis 0 with size 5

Image

Everything works well with recordings where I take full shanks channels. So maybe this is not implemented yet ? Or do you have a solution ?

Best,
Andry

@mayofaulkner
Copy link
Contributor

Hi Andry, it should be implemented but it seems that perhaps it can't handle this channel map. Would you be able to share the channels.localCoordintates and channels.rawInd and if possible also the ap.meta file with me so I can take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants