SpikeInterface / SpikeInterface/spikeinterface
Sorting analyzer does not propagate sparsity to template extension
Open
@h-mayorquin is already working on this.
Since May 17, 2024.
bug
core
- Dominant language
- Python
- Stars
- 847
- Forks
- 280
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 29
Description
from spikeinterface.core import create_sorting_analyzer
from spikeinterface.core import generate_ground_truth_recording
job_kwargs = dict(
n_jobs=1,
progress_bar=False,
verbose=False,
chunk_duration=1.0,
)
recording, sorting = generate_ground_truth_recording(num_channels=384, durations=[10], seed=0)
analyzer = create_sorting_analyzer(sorting, recording, sparse=True, format="memory", **job_kwargs)
random_spike_parameters = {
"method": "all",
}
template_extension_parameters = {
"ms_before": 3.0,
"ms_after": 5.0,
"operators": ["average"],
}
extensions = {
"random_spikes": random_spike_parameters,
"templates": template_extension_parameters,
}
analyzer.compute_several_extensions(
extensions=extensions,
**job_kwargs
)
template = analyzer.get_extension("templates").get_data(outputs="Templates")
template.sparsity
template.are_templates_sparse()
Outputs False
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.