Is your feature request related to a problem? Please describe.
Using Trajectory requires creating an instance of the class, accessing the contents of the trajectory, and then closing it. This can be simplified by converting Trajectory to be compatible with the with keyword.
Describe the solution you'd like
Implement the __enter__ and __exit__ functions in Trajectory to enable this behavior.
Describe alternatives you've considered
The current method is currently captured in the repo README.
Is your feature request related to a problem? Please describe.
Using
Trajectoryrequires creating an instance of the class, accessing the contents of the trajectory, and then closing it. This can be simplified by convertingTrajectoryto be compatible with thewithkeyword.Describe the solution you'd like
Implement the
__enter__and__exit__functions inTrajectoryto enable this behavior.Describe alternatives you've considered
The current method is currently captured in the repo README.