def read_json(self):
    data_frame = pd.read_json(self.path_to_json)
    last_default_index = (len(data_frame) - 1)
    all_trajs = []
    for i in range(last_default_index):
        event = data_frame['events'][i]
        self.event = Event(event)
        trajs = self.event.get_traj()
        if (len(trajs) > 0):
            all_trajs.append(trajs)
    all_trajs = np.concatenate(all_trajs, axis=0)
    return all_trajs
def read_json(self):
    data_frame = pd.read_json(self.path_to_json)
    last_default_index = (len(data_frame) - 1)
    all_trajs = []
    for i in range(last_default_index):
        event = data_frame['events'][i]
        self.event = Event(event)
        trajs = self.event.get_traj()
        if (len(trajs) > 0):
            all_trajs.append(trajs)
    all_trajs = np.concatenate(all_trajs, axis=0)
    return all_trajs