import pickle


def load_selected_trajectory(traj_file_name):
    """Loads a pickled and saved trajectory from a file."""
    with open(traj_file_name, 'rb') as traj_file:
        trajectory = pickle.load(traj_file)
        traj_file.close()
    return trajectory