from_context
#
- biotite.interface.openmm.from_context(template, context)[source]#
Parse the coordinates and box of the current state of an
openmm.openmm.Context
into anAtomArray
.- Parameters:
- templateAtomArray
This structure is used as template. The output
AtomArray
is equal to this template with the exception of the coordinates and the box vectors.- contextContext
The coordinates are parsed from the current state of this
openmm.openmm.Context
.
- Returns:
- atomsAtomArray
The created
AtomArray
.