Package schrodinger :: Module structure :: Class MaestroTextReader
[hide private]
[frames] | no frames]

Class MaestroTextReader

                 object --+    
                          |    
_ReaderWriterContextManager --+
                              |
                             MaestroTextReader

A class for reading structures from a Maestro format file. The structures returned are TextualStructure objects. These allow read-only access to the Structure-level properties but not to atoms or any properties which rely on atoms.

Instance Methods [hide private]
 
__init__(self, filename, index=1, error_handler=None)
Initialize the reader.
 
__del__(self)
 
__iter__(self)
 
next(self)
Return the next Structure object from the file.
 
close(self)
Close the file.

Inherited from _ReaderWriterContextManager: __enter__, __exit__

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)
(Constructor)

 

Initialize the reader.

Parameters:
  • filename (string) - The filename to read.
  • index (int) - The index of the first structure to read.
  • error_handler (int) - The handle of the mmerr object to use for error logging. Defaults to schrodinger.infra.mm.error_handler.
Overrides: object.__init__