Lib: beacon_sync fig allow single time_delta

This commit is contained in:
Eric Teunis de Boone 2022-08-08 17:53:59 +02:00
parent d2ab1d1dae
commit 7f26cc3cd3
1 changed files with 7 additions and 1 deletions

View File

@ -41,7 +41,13 @@ def beacon_sync_figure(
ns=1e-3
):
if not hasattr(delta_t, "__len__"):
delta_t = np.repeat(delta_t, 2)
delta_t = np.array([0, delta_t])
if not hasattr(impulse_offsets, "__len__"):
impulse_offsets = np.repeat(impulse_offsets, 2)
if not hasattr(beacon_offsets, "__len__"):
beacon_offsets = np.repeat(beacon_offsets, 2)
N_axes = 2
if show_annotations: