From 3355a37190d76d760755c551758de1a2823f4fd2 Mon Sep 17 00:00:00 2001 From: Max Linke Date: Sun, 23 Oct 2016 15:16:29 +0200 Subject: [PATCH] Add tell method --- package/MDAnalysis/lib/formats/libdcd.pyx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/MDAnalysis/lib/formats/libdcd.pyx b/package/MDAnalysis/lib/formats/libdcd.pyx index d07dfb1c80d..aabcb1f8116 100644 --- a/package/MDAnalysis/lib/formats/libdcd.pyx +++ b/package/MDAnalysis/lib/formats/libdcd.pyx @@ -296,3 +296,7 @@ cdef class DCDFile: if ok != 0: raise IOError("DCD seek failed with system errno={}".format(ok)) self.current_frame = frame + + def tell(self): + """Get current frame""" + return self.current_frame