tracktable.rw.read_write_dictionary module

Module contents

tracktable.rw.read_write_dictionary - Read/Write a trajectory from/to a python dictionary

tracktable.rw.read_write_dictionary.dictionary_from_trajectory(trajectory)[source]

Constructes dictionary from the given trajectory

Parameters

trajectory (Trajectory) – the trajectory to convert into a dictonary representation

Returns

Dictionary constructed from the trajectory

tracktable.rw.read_write_dictionary.trajectory_from_dictionary(dictionary)[source]

Constructes a trajectory from the given dictionary.

Parameters

dictionary (dict) – the dictionary to convert into a trajectory

Returns

Trajectory constructed from the dictionary