gsd Python package#
GSD provides a Python API. Use the gsd.hoomd
module to read and write files for
HOOMD-blue.
Submodules#
- gsd.fl module
- gsd.hoomd module
BondData
ConfigurationData
ConstraintData
Frame
HOOMDTrajectory
ParticleData
ParticleData.N
ParticleData.types
ParticleData.position
ParticleData.orientation
ParticleData.typeid
ParticleData.mass
ParticleData.charge
ParticleData.diameter
ParticleData.body
ParticleData.moment_inertia
ParticleData.velocity
ParticleData.angmom
ParticleData.image
ParticleData.type_shapes
ParticleData.validate()
Snapshot
open()
read_log()
- gsd.pygsd module
GSDFile
GSDFile.__enter__()
GSDFile.__exit__()
GSDFile.__getstate__()
GSDFile.__setstate__()
GSDFile.application
GSDFile.chunk_exists()
GSDFile.close()
GSDFile.end_frame()
GSDFile.file
GSDFile.find_matching_chunk_names()
GSDFile.gsd_version
GSDFile.mode
GSDFile.name
GSDFile.nframes
GSDFile.read_chunk()
GSDFile.schema
GSDFile.schema_version
GSDFile.truncate()
GSDFile.write_chunk()
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
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)