Skip to content

Commit

Permalink
fixed known failure in transition
Browse files Browse the repository at this point in the history
  • Loading branch information
kain88-de committed Jun 4, 2017
1 parent 932e30f commit b5b749b
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions testsuite/MDAnalysisTests/coordinates/test_dcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,23 +158,22 @@ def test_timeseries_slicing(self):
for start, stop, step in x:
yield self._slice_generation_test, start, stop, step

# def test_backwards_stepping(self):
# x = [(4, 0, -1), (5, 0, -2), (5, 0, -4)]
# for start, stop, step in x:
# yield self._failed_slices_test, start, stop, step
def test_backwards_stepping(self):
x = [(4, 0, -1), (5, 0, -2), (5, 0, -4)]
for start, stop, step in x:
yield self._failed_slices_test, start, stop, step

def _slice_generation_test(self, start, stop, step):
self.u = mda.Universe(PSF, DCD)
ts = self.u.trajectory.timeseries(self.u.atoms)
ts_skip = self.u.trajectory.timeseries(self.u.atoms, start, stop, step)
assert_array_almost_equal(ts[:,start:stop:step], ts_skip, 5)

# @knownfailure
# def _failed_slices_test(self, start, stop, step):
# self.u = mda.Universe(PSF, DCD)
# ts = self.u.trajectory.timeseries(self.u.atoms)
# ts_skip = self.u.trajectory.timeseries(self.u.atoms, start, stop, step)
# assert_array_almost_equal(ts[:, start:stop:step,:], ts_skip, 5)
def _failed_slices_test(self, start, stop, step):
self.u = mda.Universe(PSF, DCD)
ts = self.u.trajectory.timeseries(self.u.atoms)
ts_skip = self.u.trajectory.timeseries(self.u.atoms, start, stop, step)
assert_array_almost_equal(ts[:, start:stop:step,:], ts_skip, 5)


def test_DCDReader_set_dt(dt=100., frame=3):
Expand Down

0 comments on commit b5b749b

Please sign in to comment.