We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ced684 commit e439ffdCopy full SHA for e439ffd
package/MDAnalysis/coordinates/DCD.py
@@ -167,7 +167,8 @@ def _read_next_timestep(self, ts=None):
167
if self._frame == self.n_frames - 1:
168
raise IOError('trying to go over trajectory limit')
169
if ts is None:
170
- ts = self.ts
+ # use a copy to avoid that ts always points to the same reference
171
+ ts = self.ts.copy()
172
frame = self._file.read()
173
self._frame += 1
174
ts = self._frame_to_ts(frame, ts)
0 commit comments