Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 def close(self):
     status = libxdrfile2.exdrCLOSE
     if not self.xdrfile is None:
         status = libxdrfile2.xdrfile_close(self.xdrfile)
         self.xdrfile = None
     return status
Exemplo n.º 4
0
 def close(self):
     status = libxdrfile2.exdrCLOSE
     if not self.xdrfile is None:
         status = libxdrfile2.xdrfile_close(self.xdrfile)
         self.xdrfile = None
     return status