Skip to content

Make tutorial data generation faster#1063

Closed
CodyCBakerPhD wants to merge 3 commits intoNeurodataWithoutBorders:support-neuroconv-latestfrom
CodyCBakerPhD:faster_tutorial
Closed

Make tutorial data generation faster#1063
CodyCBakerPhD wants to merge 3 commits intoNeurodataWithoutBorders:support-neuroconv-latestfrom
CodyCBakerPhD:faster_tutorial

Conversation

@CodyCBakerPhD
Copy link
Collaborator

While the caching of tutorial data in CI is not a terrible idea overall, it is a workaround to a broader issue

Prior to when I began the work on #917 ( to support modern versions of SpikeInterface for the tutorial generation), the tutorial data generation step usually took less than 30 seconds to complete, if not faster (this can be tested using the previous releases)

I was unable to finish the debugging on that PR before work stopped on the project. When others finished the work and merged, they introduced an immense slowdown by adding the lines that this PR removes involving PC estimation

This means all releases after v1.0.5 suffered from this slowdown for any users attempting to follow the tutorials from the docs

@CodyCBakerPhD CodyCBakerPhD self-assigned this Feb 23, 2026
@bendichter bendichter deleted the branch NeurodataWithoutBorders:support-neuroconv-latest March 4, 2026 16:01
@bendichter bendichter closed this Mar 4, 2026
@bendichter
Copy link
Collaborator

closed accidentally. Reopening elsewhere

bendichter added a commit that referenced this pull request Mar 4, 2026
Remove expensive principal_components and spike_amplitudes computations
from generate_test_data(). Pass compute_pc_features=False and
compute_amplitudes=False to export_to_phy instead. This reduces
generation time from ~10min to ~3s.

Based on CodyCBakerPhD's PR #1063.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
bendichter added a commit that referenced this pull request Mar 4, 2026
Remove expensive principal_components and spike_amplitudes computations
from generate_test_data(). Pass compute_pc_features=False and
compute_amplitudes=False to export_to_phy instead. This reduces
generation time from ~10min to ~3s.

Based on CodyCBakerPhD's PR #1063.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bendichter bendichter mentioned this pull request Mar 4, 2026
2 tasks
@bendichter
Copy link
Collaborator

Thanks for identifying this! These changes have been rebased onto main (now that #1056 is merged) in #1064.

@CodyCBakerPhD CodyCBakerPhD deleted the faster_tutorial branch March 6, 2026 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants