Package schrodinger :: Package application :: Package desmond :: Module ffiostructure :: Class CMSReader
[hide private]
[frames] | no frames]

Class CMSReader

object --+
         |
        CMSReader

A class for reading structures from a CMS format file.

Instance Methods [hide private]
 
__init__(self, filename, index=1, error_handler=None, input_string=None)
Initialize with a filename, an optional starting index (default of 1) and optional error_handler (default of mm.error_handler).
 
__del__(self)
 
close(self)
Close the file.
 
__iter__(self)
 
next(self)
Return the next FFIOStructure object from the file.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  read_mode = 16
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, filename, index=1, error_handler=None, input_string=None)
(Constructor)

 

Initialize with a filename, an optional starting index (default of 1) and optional error_handler (default of mm.error_handler).

Overrides: object.__init__

next(self)

 

Return the next FFIOStructure object from the file. Set self.last_position to the file offset just before it was read.