module trainer.py
function generate_tetanus_pattern
generate_tetanus_pattern(
neurons,
stim_count=5,
delay_ms=5,
amp_mv=400,
pulse_width=100,
random=False,
replace=False
)
Generates a tetanus pattern for neuron stimulation.
Args: neurons (list): List of neurons. stim_count (int): Number of stimulations at most to use. delay_ms (int): Delay between stimulations in milliseconds. amp_mv (int): Amplitude in millivolts. pulse_width (int): Pulse width. replace (bool): Whether to replace selections.
Returns: list: A sequence of stimulation and delay actions.
function generate_permutations
generate_permutations(
neurons,
stim_count=5,
delay_ms=5,
amp_mv=400,
pulse_width=100
)
Generates a list of tetanus patterns for all permutations of the given neurons.
Args: neurons (list): List of neurons. stim_count (int): Number of stimulations. delay_ms (int): Delay between stimulations in milliseconds. amp_mv (int): Amplitude in millivolts. pulse_width (int): Pulse width.
Returns: list: A list of sequences, each a unique permutation of stimulation and delay actions.
function generate_stimulations
generate_stimulations(electrode_inds, amp=400, phase_width=200)
Creates a list of stimulation commands for the given electrodes with the given amplitude and phase width
This file was automatically generated via lazydocs.