dtrj_trans_info_str

mdtools.run_time_info.dtrj_trans_info_str(dtrj)[source]

Create a string containing basic information about the state transitions in a discrete trajectory.

The string can be printed directly to standard output using print().

The information contained in the string is:

  • The number of frames of the discrete trajectory (per compound).

  • The number of compounds (or in other words, the number of single-compound trajectories contained in dtrj).

  • The information generated by mdtools.run_time_info.dtrj_trans_info().

Parameters:

dtrj (array_like) – The discrete trajectory. Array of shape (n, f), where n is the number of compounds and f is the number of frames. The elements of dtrj are interpreted as the indices of the states in which a given compound is at a given frame.

Returns:

rti (str) – Human readable string containing the above listed content.

See also

mdtools.run_time_info.dtrj_trans_info()

Generate basic information about the state transitions in a discrete trajectory

mdtools.file_handler.indent()

Indent a text