@classmethod
def matching_trigger_signal(cls, mysignal, trigger_s):
    """
        Given a physiosignal object (mysignal), return another one with the same timing but
        with 'signal' the trigger_s
        """
    assert isinstance(mysignal, cls
        ), 'You can only add physiosignals to physiodata'
    return cls(label='trigger', signal=trigger_s, samples_per_second=
        mysignal.samples_per_second, sampling_times=mysignal.sampling_times,
        physiostarttime=mysignal.physiostarttime, neuralstarttime=mysignal.
        neuralstarttime)
