Closed zm711 closed 8 months ago
I can create if I use sparse=False
.
Hi Zach! I'll take a look at this tomorrow :) Thanks for testing!!
Sounds good Alessio. I'll keep testing on my end when I can. :)
@zm711
So the problem is in the compute_sparsity function, which needs a Templates
object or a SortingAnalyzer
as input.
The Templates
object can only accept a single Probe
, with the assumption that you wouldn't/shouldn't compute templates spanning multiple probes.
I think that the solution could be extending the function to accept a list of Templates
objects, so that the estimate_sparsity
function would loop through the probes, slice the template averages, and instantiate a list of Templates
objecte here.
Alternatively, we could be less strict on the Templates
creation an accept a probe_or_probegroup
.
What do you think would be the best solution here? @samuelgarcia
Happy to make a PR for it :)
This makes perfect sense different probes within a probegroup should be treated separately for sparsity. Maybe @JoeZiminski and I are the only ones doing a lot of sorting by group with different probegroups, but it would be super nice to just automatically handle it :)
@alejoe91 : Templates with multiple probes will be a total nightmare to handle. I really want to avoid it. I prefer to handle this directly in sparsity computation. Lets find something. recording with multiple probes is OK.
SortingAnalyzer with multiple probe is complicated. Templates with multiple probe is a bad idea I think.
I'm trying to understand the potential plan. So,
I agree Template with multiple probes is bad. Although technically you could have probes close together in which case they could see the same spikes (e.g. if someone made shanks into probes and put them in a probegroup--just depends on how close I guess).
OR
- But is the hope to allow SortingAnalyzer handle probegroups (ie put the strain on the developers)
Normaly SortingAnalyzer already handle probegroups but we could have corner bugs.
I don't count this as a corner issue. For me not having sparsity makes all the widgets for templates and waveforms unusable. And it will slowdown the calculations (although they are still pretty quick so kudos). For me I would stick with WaveformExtractor
until sparsity is worked out.
I did a simple fix also in #2514. Can you check this is now working ?
Yeah I'll check when I get to lab and let you know later today :)
@samuelgarcia was testing the sorting_analyzer today, but on the very first step it was giving me this error. The
WaveformExtractor
used to always handle this automatically for me. I pretty much always do probegroups these days, but I'll see if I can find a dataset with just a probe to test.Or is it now the responsibility of the user for this management?