dcd¶
Read dcd files. Some timings (in ipython). Reading lammps files, not using convang here, so angles are not converted but this is only a speed test.
>>> %timeit cc,co=dcd.read_dcd_data_ref('lmp.out.dcd')
100 loops, best of 3: 3.35 ms per loop
>>> %timeit cc,co=dcd.read_dcd_data_f('lmp.out.dcd')
1000 loops, best of 3: 455 µs per loop
>>> %timeit cc,co=dcd.read_dcd_data_f('lmp.out.dcd', nstephdr=True)
1000 loops, best of 3: 241 µs per loop
>>> # pure numpy wins!
>>> %timeit cc,co=dcd.read_dcd_data('lmp.out.dcd')
10000 loops, best of 3: 114 µs per loop
DType class corresponding to the scalar type and dtype of the same name. |
|
Built-in mutable sequence. |
|
|
Read dcd file. |
|
Read dcd file. |
|
Read dcd file. |
|
Shortcut function for reading the header from fn, using HEADER_DTYPE. |