create_ramp_current#
- create_ramp_current(
- n_pools: int,
- t_points: int,
- timestep__ms: Quantity__ms,
- start_currents__nA: Quantity__nA | list[Quantity__nA],
- end_currents__nA: Quantity__nA | list[Quantity__nA],
- offsets__nA: Quantity__nA | list[Quantity__nA] = 0.0 * pq.nA,
Create a matrix of ramp currents for multiple pools.
- Parameters:
n_pools (int) – Number of current pools to generate
t_points (int) – Number of time points
timestep__ms (Quantity__ms) – Time step in milliseconds as a Quantity
start_currents__nA (Quantity__nA | list[Quantity__nA]) –
Starting current(s) for the ramp in nanoamperes.
- Must be:
Single Quantity: used for all pools
List of Quantities: must match n_pools
end_currents__nA (Quantity__nA | list[Quantity__nA]) –
Ending current(s) for the ramp in nanoamperes.
- Must be:
Single Quantity: used for all pools
List of Quantities: must match n_pools
offsets__nA (Quantity__nA | list[Quantity__nA]) –
DC offset(s) to add to the ramp current(s) in nanoamperes.
- Must be:
Single Quantity: used for all pools
List of Quantities: must match n_pools
- Raises:
ValueError – If the parameters are lists and the length of the parameters does not match n_pools
- Returns:
Analog signal of shape (t_points, n_pools) * pq.nA containing ramp currents
- Return type:
INPUT_CURRENT__AnalogSignal