single_cell_parsernetwork_param_modify_functionschange_ongoing_interval

change_ongoing_interval

single_cell_parser.network_param_modify_functions.change_ongoing_interval(n, factor=1, pop=None)

Scales the ongoing frequency with a factor.

Does so by scaling the time bins of the ongoing activity of the presynaptic Spiketrain celltype.

Parameters:
  • n (sumatra.parameters.NTParameterSet | dict) – The Network parameters.

  • factor (float) – The factor to scale the ongoing frequency with.

  • pop (list) – The celltypes to apply the scaling to.

Raises:

AssertionError – If the presynptic PointCell is not of type spiketrain.

Example

>>> celltype = 'L6cc\_C2'  # layer 6 cortico-cortical cells in column C2
>>> n.network[celltype].celltype.pointcell.intervals
[(0, 1000)]
>>> change\_ongoing\_interval(n, 2, pop=['L6cc'])
>>> n.network[celltype].celltype.pointcell.intervals
[(0, 2000)]