예제 #1
0
파일: core.py 프로젝트: djay0529/mdanalysis
 def close(self):
     """Close xdr trajectory file if it was open."""
     if self.xdrfile is None:
         return
     libxdrfile2.xdrfile_close(self.xdrfile)
     self.xdrfile = None  # guard against  crashing with a double-free pointer
예제 #2
0
파일: core.py 프로젝트: ivirshup/mdanalysis
 def close(self):
     """Close xdr trajectory file if it was open."""
     if self.xdrfile is None:
         return
     libxdrfile2.xdrfile_close(self.xdrfile)
     self.xdrfile = None  # guard against  crashing with a double-free pointer
예제 #3
0
파일: core.py 프로젝트: djay0529/mdanalysis
 def close(self):
     status = libxdrfile2.exdrCLOSE
     if not self.xdrfile is None:
         status = libxdrfile2.xdrfile_close(self.xdrfile)
         self.xdrfile = None
     return status
예제 #4
0
파일: core.py 프로젝트: ivirshup/mdanalysis
 def close(self):
     status = libxdrfile2.exdrCLOSE
     if not self.xdrfile is None:
         status = libxdrfile2.xdrfile_close(self.xdrfile)
         self.xdrfile = None
     return status