mdload#

torchspin.mdload(traj_file, top_file, info=None, opt=None)[source]#

Load MD trajectory and extract spin-label information.

Parameters:
  • traj_file (str or list of str) – Trajectory file path(s). Supported: .dcd, .trr

  • top_file (str) – Topology file path. Supported: .psf, .gro

  • info (MDInfo, optional) – Residue/label identification parameters.

  • opt (MDOptions, optional) – Loading options.

Returns:

md (MDData) – Processed trajectory data.

Return type:

MDData