spike_analysis
❭ core
❭ SpikeDetectionCreastTrough
❭ _set_creast_trough
SpikeDetectionCreastTrough._set_creast_trough¶
- spike_analysis.core.SpikeDetectionCreastTrough._set_creast_trough(lim_creast, lim_trough)¶
Sets the creast and trough limits based on the given values.
- Parameters:¶
lim_creast (float|str) – Threshold above which a creast of a spike is detected as such.
lim_trough (float|str) – Threshold below which a trough of a spike is detected as such.
- Raises:¶
ValueError – If lim_creast and lim_trough are not both floats or both “minimum” or both “zero”.
- Returns:¶
None. Sets the
lim_creast
andlim_trough
attributes.