|
93 | 93 | from . import core |
94 | 94 | # Add the c functions to their respective classes so they act as class methods |
95 | 95 | from . import _dcdmodule |
96 | | -# dcdtimeseries is implemented with Pyrex - hopefully all dcd reading functionality can move to pyrex |
97 | | -from . import dcdtimeseries |
98 | | - |
99 | 96 |
|
100 | 97 |
|
101 | 98 | class Timestep(base.Timestep): |
@@ -400,8 +397,6 @@ class DCDReader(base.ReaderBase): |
400 | 397 | random access into the trajectory (i corresponds to frame number) |
401 | 398 | ``data = dcd.timeseries(...)`` |
402 | 399 | retrieve a subset of coordinate information for a group of atoms |
403 | | - ``data = dcd.correl(...)`` |
404 | | - populate a :class:`MDAnalysis.core.Timeseries.Collection` object with computed timeseries |
405 | 400 |
|
406 | 401 | Note |
407 | 402 | ---- |
@@ -579,57 +574,6 @@ def timeseries(self, asel=None, start=None, stop=None, step=None, skip=None, |
579 | 574 | # XXX needs to be implemented |
580 | 575 | return self._read_timeseries(atom_numbers, start, stop, step, format) |
581 | 576 |
|
582 | | - @deprecate(message="This method will be removed in 0.17") |
583 | | - def correl(self, timeseries, start=None, stop=None, step=None, skip=None): |
584 | | - """ |
585 | | -Populate a :class:`~MDAnalysis.core.Timeseries.TimeseriesCollection` object |
586 | | -with time series computed from the trajectory. |
587 | | -
|
588 | | -Calling this method will iterate through the whole trajectory and |
589 | | -perform the calculations prescribed in `timeseries`. |
590 | | -
|
591 | | -Parameters |
592 | | ----------- |
593 | | -timeseries : :class:`MDAnalysis.core.Timeseries.TimeseriesCollection` |
594 | | - The :class:`MDAnalysis.core.Timeseries.TimeseriesCollection` that defines what kind |
595 | | - of computations should be performed on the data in this trajectory. |
596 | | -start : int (optional) |
597 | | - Begin reading the trajectory at frame index `start` (where 0 is the index |
598 | | - of the first frame in the trajectory); the default ``None`` starts |
599 | | - at the beginning. |
600 | | -stop : int (optional) |
601 | | - End reading the trajectory at frame index `stop`-1, i.e, `stop` is excluded. |
602 | | - The trajectory is read to the end with the default ``None``. |
603 | | -step : int (optional) |
604 | | - Step size for reading; the default ``None`` is equivalent to 1 and means to |
605 | | - read every frame. |
606 | | -
|
607 | | -Note |
608 | | ----- |
609 | | -The `correl` functionality is only implemented for DCD trajectories and |
610 | | -the :class:`DCDReader`. |
611 | | -
|
612 | | -
|
613 | | -.. deprecated:: 0.16.0 |
614 | | - `skip` has been deprecated in favor of the standard keyword `step`. |
615 | | -
|
616 | | - """ |
617 | | - if skip is not None: |
618 | | - step = skip |
619 | | - warnings.warn("Skip is deprecated and will be removed in" |
620 | | - "in 1.0. Use step instead.", |
621 | | - category=DeprecationWarning) |
622 | | - |
623 | | - start, stop, step = self.check_slice_indices(start, stop, step) |
624 | | - atomlist = timeseries._getAtomList() |
625 | | - format = timeseries._getFormat() |
626 | | - lowerb, upperb = timeseries._getBounds() |
627 | | - sizedata = timeseries._getDataSize() |
628 | | - atomcounts = timeseries._getAtomCounts() |
629 | | - auxdata = timeseries._getAuxData() |
630 | | - return self._read_timecorrel(atomlist, atomcounts, format, auxdata, |
631 | | - sizedata, lowerb, upperb, start, stop, step) |
632 | | - |
633 | 577 | def close(self): |
634 | 578 | if self.dcdfile is not None: |
635 | 579 | self._finish_dcd_read() |
@@ -709,6 +653,3 @@ def dt(self): |
709 | 653 | DCDWriter._write_dcd_header = types.MethodType(_dcdmodule.__write_dcd_header, None, DCDWriter) |
710 | 654 | DCDWriter._write_next_frame = types.MethodType(_dcdmodule.__write_next_frame, None, DCDWriter) |
711 | 655 | DCDWriter._finish_dcd_write = types.MethodType(_dcdmodule.__finish_dcd_write, None, DCDWriter) |
712 | | - |
713 | | -#DCDReader._read_timeseries = types.MethodType(dcdtimeseries.__read_timeseries, None, DCDReader) |
714 | | -DCDReader._read_timecorrel = types.MethodType(dcdtimeseries.__read_timecorrel, None, DCDReader) |
0 commit comments