def _extract_one_stim_dur(stim_durs):
    """
    In case of multiple photostim durations - pick the shortest duration
    In case of no photostim durations - return the default of 0.5s
    """
    default_stim_dur = 0.5
    if len(stim_durs) == 0:
        return default_stim_dur
    elif len(stim_durs) > 1:
        print(f'Found multiple stim durations: {stim_durs} - select {min(stim_durs)}')
        return float(min(stim_durs))
    else:
        return float(stim_durs[0]) if len(stim_durs) == 1 and stim_durs[0] else default_stim_dur