cortex-lab / phy

phy: interactive visualization and manual spike sorting of large-scale ephys data
BSD 3-Clause "New" or "Revised" License
304 stars 155 forks source link

IndexError #1245

Closed hugosmie closed 2 weeks ago

hugosmie commented 5 months ago

indexError I encountered this issue when I split the cluster in the feature space with ctl+left click. And after this error, the following operation would raise this issue again and again (like simply select a cluster and so on). It didn't fix even after I reinstall the phy.

hugosmie commented 5 months ago

image

zm711 commented 5 months ago

Could you post how you installed phy?

hugosmie commented 5 months ago

I just followed the instructions to install as follows:

conda create -n phy2 -y cython dask h5py joblib matplotlib numpy pillow pip pyopengl pyqt pyqtwebengine pytest python qtconsole requests responses scikit-learn scipy traitlets

conda activate phy2

pip install git+https://github.com/cortex-lab/phy.git

And actually I had used phy for 2 years, and it ran well previously, this issue just occurred suddenly without any updates, which makes me quite confused.

zm711 commented 5 months ago

Yeah different packages update different so that can lead to the problems. I've actually had more success just installing with the yaml file. Could you download:

environment.yml then edit it to limit python to 3.11 (ie python=3.11, I have PR to fix the 3.12 issue, but it is not merged yet). Try that and let me know how that goes.

zm711 commented 2 weeks ago

Closing for lack of response. Feel free to reopen if you try the suggestion and it doesn't work.

Note that you will need to edit numpy < 2.0 since we have not tested on 2.0.