pwtools.crys.compress

pwtools.crys.compress(traj, copy=True, **kwds)[source]

Wrapper for Trajectory.compress().

Parameters:
  • copy (bool) – Return compressed copy or in-place modified object.

  • **kwds (keywords) – keywords to Trajectory.compress()

Examples

>>> trc = compress(tr, copy=True, forget=['coords'])
>>> trc.dump('very_small_file.pk')