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

out of bounds for axis 0 during preparing ephys data for GUI #78

Open
chongtianyifa opened this issue Dec 2, 2022 · 4 comments
Open

Comments

@chongtianyifa
Copy link

Hi there,
I pull the newest iblapps-master and prepare ephys data for GUI. I came across two issues.

  1. The number of channels might not be correctly calculated.
    image
    I noticed two lines (161-162) in
    image
    assert (fsize - offset) % (item_size * n_channels) == 0,\ 'Inconsistent number of channels between the params file and the binary dat file' was newly added comparing to my old environment. After commenting these two lines, it keep running, although a warning came out (turned out not to be caused by the comment)
    image

Another is shown below after running about 2 hours, although it might produce enough data to allow me do alignment using GUI.
image

Thanks,
Lei

@mayofaulkner
Copy link
Contributor

Hi, the first error should now be fixed in the latest version of phylib (v.2.4.2). For the second error can you let me know

  1. What spikesorting version you are using
  2. If the data has previously been merged in phy?
    Thanks

@chongtianyifa
Copy link
Author

Hi, I used kilosort2.5 and adjusted the sorting results using phy before preparing ephys data for GUI.

@mayofaulkner
Copy link
Contributor

Hi, would you mind providing me with the converted data (the spikes.times, etc, clusters.amps etc) and I can take a look what is going on. Thanks :)

@mayofaulkner
Copy link
Contributor

Hello, I have found the source of the bug and fixed it. Please can you make sure you install the latest version of ibllib like so

pip install ibllib --upgrade

Let me know if that fixes the problem

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