MDTraj Utils¶
MDTraj contains a number of tools to help with development. These are located
in mdtraj.utils.
Miscellanies¶
| 
 | Import a module, and issue a nice message to stderr if the module isn’t installed. | 
| 
 | Convert a numerical quantity between unit systems. | 
| 
 | Length of an iterator. | 
| 
 | A timing context manager | 
Validation¶
| 
 | Typecheck the size, shape and dtype of a numpy array, with optional casting. | 
| 
 | Turn seed into a np.random.RandomState instance | 
Unit cell and Periodic Boundary Conditions¶
| 
 | Convert from the lengths/angles of the unit cell to the box vectors (Bravais vectors). | 
| 
 | Convert box vectors into the lengths and angles defining the box. | 
Rotations¶
| Compute a 3x3 rotation matrix from a given quaternion (4-vector). | |
| 
 | Generate uniform normalized quaternion 4-vectors |