def get_experiment_time_series(time, data, exp):
    """Returns time and data slice between 
    experiment start and end times."""
    t0, t1 = exp.runs[0].start_time, exp.runs[-1].end_time
    mask = (time >= t0) & (time <= t1)
    return time[mask], data[mask]