tophat

gdt.core.simulate.profiles.tophat(x, amp, tstart, tstop)[source]

A tophat (rectangular) pulse function.

Parameters:
  • x (np.array) – Array of times

  • amp (float) – The tophat amplitude

  • tstart (float) – The start time of the tophat

  • tstop (float) – The end time of the tophat

Returns:

(np.array)