Skip to content

[Feature] SpikeTrainList Object as a substitute for List of Spike Trains #684

@CozySocksAlways

Description

@CozySocksAlways

Feature
Refactor internal spike train manipulation functions to return neo.core.SpikeTrainList instead of neo.core.SpikeTrain objects

Motivation
Using SpikeTrainList provides a flattened representation of spike trains, which allows multiple spike trains to be stored efficiently in a single array. This could offer potential performance improvements.

Alternatives

  • Only update selected functions rather all of them.
  • Return optional SpikeTrainList with a flag.

Potential Affected Functions
From the surrogates module:

  • dither_spike_train
  • randomise_spikes
  • jitter_spikes

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEditing an existing module, improving something

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions