gsd Python package

GSD provides a Python API. Use the gsd.hoomd module to read and write files for HOOMD-blue.

Submodules

Package contents

The GSD main module.

The main package gsd is the root package. It holds the submodules gsd.fl and gsd.hoomd, but does not import them by default. You must explicitly import these modules before use:

import gsd.fl

import gsd.hoomd
gsd.__version__

GSD software version number. This is the version number of the software package as a whole, not the file layer version it reads/writes.

Type

str

Logging

All Python modules in GSD use the Python standard library module logging to log events. Use this module to control the verbosity and output destination:

import logging
logging.basicConfig(level=logging.INFO)

See also

Module logging

Documentation of the logging standard module.