Skip to content

Commit

Permalink
Complies with MDAnalysis#4334 and removes ts arg from _read_next_time…
Browse files Browse the repository at this point in the history
…step
  • Loading branch information
JoStoe committed Nov 16, 2023
1 parent 680ae2f commit abed227
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions package/MDAnalysis/coordinates/TRC.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,19 +355,16 @@ def _read_frame(self, i):

return self._read_next_timestep()

def _read_next_timestep(self, ts=None):
if ts is None:
ts = self.ts
def _read_next_timestep(self):

self._frame += 1
if (self._frame >= self.n_frames):
raise EOFError('Trying to go over trajectory limit')

raw_framedata = self._read_GROMOS11_trajectory()
self._frame_to_ts(raw_framedata, ts)
self.ts = ts
self._frame_to_ts(raw_framedata, self.ts)

return ts
return self.ts

def _reopen(self):
"""Close and reopen the trajectory"""
Expand Down

0 comments on commit abed227

Please sign in to comment.