LukeDarlow's picture
Welcome to the CTM. This is the first commit of the public repo. Enjoy!
68b32f4
raw
history blame
319 Bytes
import numpy as np
def combine_tracking_data(tracking_history):
combined_data = {}
keys = tracking_history[0].keys()
for key in keys:
arrays_to_concat = [data[key] for data in tracking_history]
combined_data[key] = np.concatenate(arrays_to_concat, axis=0)
return combined_data