def make_pulse_input(magnitude, start_time, end_time, t_vector):
    """ Generates square pulse signal active between start_time and end_time
    """
    return [magnitude*(start_time < entry < end_time) for entry in t_vector]