cortex-lab / phy

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

"Load the geometry state" unresponsive #1053

Closed bruno-f-cruz closed 3 years ago

bruno-f-cruz commented 3 years ago

Hi,

I am having a rather annoying bug wherein phy2 stops responding when opening a new file (I have tried it on several different files). I am using the most recent version of phylib. Here's the console output using the debug mode:

12:34:27.094` [D] __init__:68          Start capturing exceptions.
12:34:27.178 [D] model:607            Loading spike clusters.
12:34:27.240 [D] model:557            No channel shank file found.
12:34:27.241 [D] model:680            Loading templates.
12:34:27.243 [D] model:709            Templates are dense.
12:34:27.243 [W] model:656            Skipping spike waveforms that do not exist, they will be extracted on the fly from the raw data as needed.
12:34:27.243 [D] model:715            Loading the whitening matrix.
12:34:27.244 [D] model:722            Loading the inverse of the whitening matrix.
12:34:27.246 [D] model:751            Loading features.
12:34:27.248 [D] model:766            Features are sparse.
12:34:27.248 [D] model:788            Loading template features.
12:34:27.250 [D] model:798            Template features are sparse.
12:34:27.251 [D] model:492            Load `cluster_Amplitude.tsv`.
12:34:27.252 [D] model:492            Load `cluster_ContamPct.tsv`.
12:34:27.253 [D] model:492            Load `cluster_group.tsv`.
12:34:27.254 [D] model:492            Load `cluster_KSLabel.tsv`.
12:34:27.449 [D] context:80           Create cache directory `D:\chronicTimingEphys\sortedBeta\ephysData2020-11-04T11_41_03\.phy`.
12:34:27.486 [D] context:100          Initialize joblib cache dir at `D:\chronicTimingEphys\sortedBeta\ephysData2020-11-04T11_41_03\.phy`.
12:34:27.487 [D] context:101          Reducing the size of the cache if needed.
12:34:27.488 [D] base:102             Add filter `high_pass`.
12:34:27.489 [D] config:31            Load config file `C:\Users\Utilizador\.phy\phy_config.py`.
12:34:27.491 [D] plugin:74            Scanning `C:\Users\Utilizador\.phy\plugins`.
12:34:27.491 [D] plugin:78            Found plugin module `phycontrib_loader.py`.
12:34:27.492 [D] plugin:145           Loading 0 plugins.
12:34:27.500 [D] context:209          The file `D:\chronicTimingEphys\sortedBeta\ephysData2020-11-04T11_41_03\.phy\new_cluster_id.pkl` doesn't exist.
12:34:27.501 [D] context:209          The file `D:\chronicTimingEphys\sortedBeta\ephysData2020-11-04T11_41_03\.phy\spikes_per_cluster.pkl` doesn't exist.
12:34:27.516 [D] clustering:237       Recompute spikes_per_cluster manually: this might take a while.
12:34:27.626 [D] context:185          Save data to `D:\chronicTimingEphys\sortedBeta\ephysData2020-11-04T11_41_03\.phy\spikes_per_cluster.pkl`.
12:34:27.661 [D] gui:463              Creating GUI.
12:34:27.663 [D] state:46             Load C:\Users\Utilizador\.phy\TemplateGUI\state.json for GUIState.
12:34:28.622 [D] gui:718              Add view ClusterView to GUI.
12:34:29.213 [D] gui:718              Add view SimilarityView to GUI.
12:34:29.351 [D] gui:718              Add view WaveformView to GUI.
12:34:29.355 [D] base:334             Set state for WaveformView.
12:34:29.370 [D] gui:718              Add view CorrelogramView to GUI.
12:34:29.373 [D] base:334             Set state for CorrelogramView.
12:34:29.400 [D] gui:718              Add view ISIView to GUI.
12:34:29.402 [D] base:334             Set state for ISIView.
12:34:29.418 [D] gui:718              Add view FeatureView to GUI.
12:34:29.420 [D] base:334             Set state for FeatureView.
12:34:29.447 [D] gui:718              Add view AmplitudeView to GUI.
12:34:29.450 [D] base:334             Set state for AmplitudeView.
12:34:29.478 [D] gui:718              Add view FiringRateView to GUI.
12:34:29.480 [D] base:334             Set state for FiringRateView.
12:34:29.500 [D] gui:718              Add view TemplateFeatureView to GUI.
12:34:29.502 [D] base:334             Set state for TemplateFeatureView.
12:34:29.528 [D] gui:718              Add view ClusterScatterView to GUI.
12:34:29.531 [D] base:334             Set state for ClusterScatterView.
12:34:29.531 [D] base:490             Set color scheme to random.
12:34:29.533 [D] base:1623            Adding default color schemes to ClusterScatterView.
12:34:29.733 [D] gui:519              Load the geometry state.

Thanks! Bruno

bruno-f-cruz commented 3 years ago

Running phy template-gui params.py --debug --clear-state --clear-cache seems to have fixed it. Feel free to close the issue. Thanks, Bruno