Table of Contents

Class: Trajectory Trajectory/Amber.py

Methods   
DetermineLength
ReadFrame
SetupFrame
WriteFrame
__getitem__
__getslice__
__init__
__len__
__repr__
frameptr
l
  DetermineLength 
DetermineLength ( self )

this rather naive function determines the length of the trajectory by looking at the file size, (subtract off length of the header)

  ReadFrame 
ReadFrame ( self,  frame )

Exceptions   
'RestartError', 'Restart frame # can only be 0'
  SetupFrame 
SetupFrame ( self )

Exceptions   
IOError, "Trajectory/Restart header line is greater than 80 characters -- invalid!!"
  WriteFrame 
WriteFrame (
        self,
        natom,
        frame,
        fd,
        atype='traj',
        writebox=None,
        )

  __getitem__ 
__getitem__ ( self,  i )

Exceptions   
'FrameError', 'Tried to read an invalid frame (%d of %d)' %( i, self.length )
  __getslice__ 
__getslice__ (
        self,
        i,
        j,
        )

Exceptions   
'FrameError', 'Tried to read an invalid frame (%d of %d)' %( i, self.length )
'FrameError', 'Tried to read an invalid frame (%d of %d)' %( j, self.length )
  __init__ 
__init__ (
        self,
        prmtop=None,
        trajectory=None,
        box=None,
        crlf=None,
        vel=0,
        )

Exceptions   
IOError, 'Trajectory %s not found' % self.trajectoryFilename
  __len__ 
__len__ ( self )

  __repr__ 
__repr__ ( self )

  frameptr 
frameptr ( self,  frame )

 
l ( self )


Table of Contents

This document was automatically generated on Wed Mar 26 19:02:36 2003 by HappyDoc version 2.1