spike_analysiscore_sta_input_checker

_sta_input_checker

spike_analysis.core._sta_input_checker(t_start, t_end, period)

Checks if the input is valid.

Parameters:
  • t_start (float) – Start time.

  • t_end (float) – End time.

  • period (dict) – Dictionary containing period labels as keys and (period_start, period_end) as values.

Returns:

A tuple containing the start time, end time, and period.

Return type:

tuple

Raises:
  • ValueError – If both period and either t_start or t_end are defined.

  • ValueError – If only one of t_start or t_end is defined.