Closed emreybroyles closed 21 hours ago
just a default check; what version of spikeinterface do you have in your environment?
The version was 0.99.1. So I just updated it to spikeinterface-0.101.0 just in case; also did a git pull. But now i am getting an import error from spyglass.common. I tested on virga-03, breeze, and zephyr. Sorry idk how to get rid of the "vscode-notebook-cell..." lines ... Let me know if i should install a specific version!
EDIT: formatting by CB
I think 99.1
is the version of spikeinterface we want. That's the version that has a WaveformExtractor
The original stack suggests to me that something about qm
shouldn't be there. It would be helpful to either see what qm
is with %debug
or have a snippet I can run to do the same myself
thanks Chris, I reinstalled spikeinterface to 99.1.
here is qm:
{'snr': {1: 3.4406157, 2: 3.4431686, 3: 3.453175}, 'isi_violation': {'1': {'1': 0.03923002662142001, '2': 0.04031183557760454, '3': 0.045673686881502154}, '2': {'1': 0.03923002662142001, '2': 0.04031183557760454, '3': 0.045673686881502154}, '3': {'1': 0.03923002662142001, '2': 0.04031183557760454, '3': 0.045673686881502154}}, 'nn_isolation': {'1': 0.9829000000000001, '2': 0.9776999999999999, '3': 0.9763999999999999}, 'nn_noise_overlap': {'1': 0.5006, '2': 0.4776, '3': 0.5015}, 'peak_offset': {1: 0, 2: 0, 3: 0}, 'num_spikes': {'1': 34184, '2': 35276, '3': 35470}}
the full error is here as well /home/ebroyles/Src/spyglass/notebooks/eb_notebooks/01_spikesorting_batch_SC-Error.ipynb
Hi @emreybroyles - What was the value of metric_key
when your first got this error?
EDIT: Found it
metric_key = {
"curation_id": 0,
"nwb_file_name": "SC3820230606_copy_.nwb",
"sort_group_id": 14,
"sort_interval_name": "pos 1 valid times",
"preproc_params_name": "franklab_tetrode_hippocampus_min_seg",
"team_name": "sc_eb",
"sorter": "mountainsort4",
"sorter_params_name": "franklab_tetrode_hippocampus_30KHz_tmp",
"artifact_removed_interval_list_name": "SC3820230606_copy_.nwb_pos 1 valid times_100_franklab_tetrode_hippocampus_min_seg_ampl_100_prop_02_2ms_artifact_removed_valid_times",
"waveform_params_name": "default_whitened",
"metric_params_name": "peak_offest_num_spikes_2",
}
Bug introduced in #1053
Resolved by #1099
Describe the bug Code in spikesorting quality metrics tries to create 1 floating point number out of a dictionary.
When running the line
sgss.QualityMetrics.populate([(sgss.MetricSelection & metric_key).proj()])
I get the errorwhere
and
To Reproduce Steps to reproduce the behavior:
01_spikesorting_batch_SC-Error.ipynb
at file path/home/ebroyles/Src/spyglass/notebooks/eb_notebooks/01_spikesorting_batch_SC-Error.ipynb