import numpy as np
from ibllib.ephys.sync_probes import apply_sync

sync_file = "/path/to/my/probe01/_spikeglx_ephysData_g0_t0.imec1.sync.npy"
times_secs = np.arange(600)
interp_times = apply_sync(sync_file, times_secs, forward=True)
