blueetl.external.bnac.calculate_trial_step

Trial steps functions adapted from BlueNetworkActivityComparison/bnac/onset.py.

Functions

onset_from_spikes(spikes_list, params)

Calculate the cortical onset from a list of spikes, one for each trial.

blueetl.external.bnac.calculate_trial_step.onset_from_spikes(spikes_list, params)

Calculate the cortical onset from a list of spikes, one for each trial.

Parameters:
  • spikes_list – list of spikes as numpy arrays.

  • params – dictionary of parameters from the trial steps configuration.

Returns:

float representing the dynamic offset to be added to the initial offset of each trial step.