stimulus.harmonic_pulse
- stimulus.harmonic_pulse(start, t_pulse, amplitude, amp_list, phase_list, dt=0)[source]
Create a pulse waveform based on N harmonic
- Parameters:
start (float) – starting time of the waveform, in ms
t_pulse (float) – pulse duration, in ms
amplitude (float) – final amplitude of the pulse, in uA WARNING: always positive, the user give here the absolute value
amp_list (list) – list of relative sine amplitude, between 0 and 1
phase_list (list) – list of sine pulse phases
dt (float) – sampling time period to generate the sinusoidal shape. If equal to 0, dt is automatically set to match 100 samples per sinusoid period by default set to 0