NetCDFReporter stores a molecular dynamics trajectory in the AMBER NetCDF format.
Parameters: | file : str, or NetCDFTrajectoryFile
reportInterval : int
coordinates : bool
time : bool
cell : bool
atomSubset : array_like, default=None
|
---|
Examples
>>> simulation = Simulation(topology, system, integrator)
>>> nc_reporter = NetCDFReporter('traj.h5', 100)
>>> simulation.reporters.append(nc_reporter)
>>> simulation.step(10000)
>>> traj = mdtraj.trajectory.load('traj.nc')
Create a NetCDFReporter.
Methods
__init__(file, reportInterval[, ...]) | Create a NetCDFReporter. |
close() | Close the underlying trajectory file |
describeNextReport(simulation) | Get information about the next report this object will generate. |
report(simulation, state) | Generate a report. |
Attributes
backend |
Close the underlying trajectory file
Get information about the next report this object will generate.
Parameters: | simulation : simtk.openmm.app.Simulation
|
---|---|
Returns: | report_description : tuple
|
Generate a report.
Parameters: | simulation : simtk.openmm.app.Simulation
state : simtk.openmm.State
|
---|