biophysics_fittinghayevaluationBACcheck

BAC.check

biophysics_fitting.hay.evaluation.BAC.check(out, voltage_traces)

Check for problems in the voltage trace.

This should be called after evaluating the voltage traces. it is e.g. the last step in get(), where it adds the checks to the output dictionary.

This method checks if the voltage trace:

  • has at least 2 APs present.

  • properly returns to rest.

  • has no spikes before stimulus onset (in soma or dendrite).

  • has its last spike before the deadline.

  • there is no dendritic spike before stimulus onset

Parameters:
  • out – dictionary with the evaluation metrics

  • voltage_traces – dictionary with the voltage traces of the soma and dendrite.

Returns:

dictionary with the evaluation metrics, containing the raw values, normalized values, and checks.

Return type:

dict