To save the trajectories the `_set_metadata` function will need to be defined.
To save the trajectories the
_set_metadatafunction will need to be defined.