single_cell_parseranalyzemembrane_potential_analysiscompute_vm_histogram

compute_vm_histogram

single_cell_parser.analyze.membrane_potential_analysis.compute_vm_histogram(vTraces, bins=None)

Compute the histogram of membrane voltage traces.

Parameters:
  • vTraces (numpy.ndarray) – Array of (one or more) voltage traces. Shape: (n\_traces, n\_timepoints).

  • bins (numpy.ndarray) – Bins for the histogram. Default is np.arange(-80, -40, 2).

Returns:

The histogram and the bins

Return type:

tuple