Get a State object recording the current state information stored in this context.
Parameters:
- getPositions (bool=False) whether to store particle positions in the State
- getVelocities (bool=False) whether to store particle velocities in the State
...
...
@@ -55,26 +55,31 @@
- getEnergy (bool=False) whether to store potential and kinetic energy in the State
- getParameter (bool=False) whether to store context parameters in the State
- enforcePeriodicBox (bool=False) if false, the position of each particle will be whatever position is stored in the Context, regardless of periodic boundary conditions. If true, particle positions will be translated so the center of every molecule lies in the same periodic box.
- groups (int=-1) a set of bit flags for which force groups to include when computing forces and energies. Group i will be included if (groups&(1<<i)) != 0. The default value includes all groups.
- groups (set={0,1,2,...,31}) a set of indices for which force groups
to include when computing forces and energies. The default value
includes all groups. groups can also be passed as an unsigned integer
interpreted as a bitmask, in which case group i will be included if
Copy information from a State object into this Context. This restores the Context to
approximately the same state it was in when the State was created. If the State does not include
a piece of information (e.g. positions or velocities), that aspect of the Context is
...
...
@@ -108,7 +113,7 @@
forparaminstate._paramMap:
self.setParameter(param,state._paramMap[param])
%}
%feature("docstring")createCheckpoint"Create a checkpoint recording the current state of the Context.
This should be treated as an opaque block of binary data. See loadCheckpoint() for more details.
...
...
@@ -196,9 +201,9 @@ Parameters:
enforcePeriodicBox = False,
groups = -1)
-> State
Get a State object recording the current state information about one copy of the system.
Parameters:
- copy (int) the index of the copy for which to retrieve state information
- getPositions (bool=False) whether to store particle positions in the State
...
...
@@ -207,26 +212,30 @@ Parameters:
- getEnergy (bool=False) whether to store potential and kinetic energy in the State
- getParameter (bool=False) whether to store context parameters in the State
- enforcePeriodicBox (bool=False) if false, the position of each particle will be whatever position is stored in the Context, regardless of periodic boundary conditions. If true, particle positions will be translated so the center of every molecule lies in the same periodic box.
- groups (int=-1) a set of bit flags for which force groups to include when computing forces and energies. Group i will be included if (groups&(1<<i)) != 0. The default value includes all groups.
- groups (set={0,1,2,...,31}) a set of indices for which force groups
to include when computing forces and energies. The default value
includes all groups. groups can also be passed as an unsigned integer
interpreted as a bitmask, in which case group i will be included if