single_cell_parsercell_modify_functionsapical_current_injectionapical_current_injection

apical_current_injection

single_cell_parser.cell_modify_functions.apical_current_injection.apical_current_injection(cell, amplitude=None, delay=None, duration=None, dist=None)

Inject a current at a given distance from the soma.

Parameters:
  • cell (Cell) – The cell object.

  • amplitude (float) – The amplitude of the current (nA).

  • delay (float) – The delay of the current (ms).

  • duration (float) – The duration of the current (ms).

  • dist (float) – The distance from the soma (um). For an apical current injection, this should be the distance from the soma to the apical dendrite.

Returns:

The cell with the current injection set up.

Return type:

Cell