Closed mschart closed 4 months ago
Hi guys,
Yesterday I opened a terminal, activated IBL env, and run this:
from brainbox.io.one import SpikeSortingLoader from one.api import ONE one = ONE() pid = '0777b1bf-964b-49b7-888b-8a6c9df09c3b' In [11]: spikes, clusters = load_good_units(one, pid) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Input In [11], in <cell line: 1>() ----> 1 spikes, clusters = load_good_units(one, pid) File ~/int-brain-lab/paper-brain-wide-map/brainwidemap/bwm_loading.py:134, in load_good_units(one, pid, compute_metrics, **kwargs) 132 spike_loader = SpikeSortingLoader(pid=pid, one=one, eid=eid, pname=pname) 133 spikes, clusters, channels = spike_loader.load_spike_sorting() --> 134 clusters_labeled = SpikeSortingLoader.merge_clusters( 135 spikes, clusters, channels, compute_metrics=compute_metrics).to_df() 136 iok = clusters_labeled['label'] == 1 137 good_clusters = clusters_labeled[iok] AttributeError: 'NoneType' object has no attribute 'to_df'
It still has this error when trying this in the same terminal today.
Then today, I do the exact same thing and it loads the spikes normally. Any idea?
With the new spike sorting this issue is moot !
Hi guys,
Yesterday I opened a terminal, activated IBL env, and run this:
It still has this error when trying this in the same terminal today.
Then today, I do the exact same thing and it loads the spikes normally. Any idea?