def get_presyn_stim_args(config, pre_spike_train):
    """Get the dict containing pre-synaptic stimulus config.

    Args:
        config (configparser.ConfigParser): configuration
        pre_spike_train (list): times at which the synapses fire (ms)

    Returns:
        dict: presynaptic stimuli related configuration data
    """
    # spikedelay is the time between the start of the stimulus
    # and the precell spike time
    spike_delay = config.getfloat("Protocol", "precell_spikedelay")

    # stim train is the times at which to stimulate the precell
    return {
        "stim_train": pre_spike_train - spike_delay,
        "amp": config.getfloat("Protocol", "precell_amplitude"),
        "width": config.getfloat("Protocol", "precell_width"),
    }