Closed Moritz-Alexander-Kern closed 4 months ago
This PR closes #613.
This PR changes the handling of neo.AnalogSignals in elephant.spike_train_generation module.
neo.AnalogSignals
elephant.spike_train_generation
Type Annotations: Improved code readability with type annotations.
Multichannel Support: handling of analog signals with multiple channels in spike_extraction, threshold_detection, and peak_detection.
spike_extraction
threshold_detection
peak_detection
New Parameter: always_as_list: Ensures a consistent list output of SpikeTrains, even with single-channel input.
always_as_list
Unit Tests: testing for various input types and values to validate reliability, and multichannel AnalogSignals
Input Checks: Enhanced to catch errors related to incorrect input types.
todo:
coverage: 88.347% (+0.1%) from 88.222% when pulling 147ac1b0a602f13e92cd53450160e8ce6b55785b on INM-6:fix/#613_spike_train_generation_peak_detection into bdd98eefe99706621f5c840ce28134dac0e794af on NeuralEnsemble:master.
This PR closes #613.
This PR changes the handling of
neo.AnalogSignals
inelephant.spike_train_generation
module.Type Annotations: Improved code readability with type annotations.
Multichannel Support: handling of analog signals with multiple channels in
spike_extraction
,threshold_detection
, andpeak_detection
.New Parameter:
always_as_list
: Ensures a consistent list output of SpikeTrains, even with single-channel input.Unit Tests: testing for various input types and values to validate reliability, and multichannel AnalogSignals
Input Checks: Enhanced to catch errors related to incorrect input types.
todo: