ag_info_str

mdtools.run_time_info.ag_info_str(ag, indent=0)[source]

Create a string containing information about a MDAnalysis AtomGroup.

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

The information contained in the string is:

Refer to the MDAnalysis’ user guide for an explanation of these terms.

Parameters
  • ag (MDAnalysis.core.groups.AtomGroup) – The MDAnalysis AtomGroup for which to create the information string.

  • indent (int, optional) – Number of spaces to indent the information string. Negative indentation is treated as zero indentation.

Returns

ag_info – Human readable string containing the above listed content.

Return type

str

See also

mdtools.file_handler.indent()

Indent a text