Package schrodinger :: Package application :: Package glide :: Package packages :: Module driver :: Class LigWriter
[hide private]
[frames] | no frames]

Class LigWriter

object --+
         |
        LigWriter
Known Subclasses:

Objects of this class can be used as context managers and as file-like objects (with a .write() method) to write ligands while abstracting away job-dependent aspects such as compression and file headers.

This is low-level writing; the "ligand" passed by the caller is nothing but a string. The motivation is to be able to efficiently dump ligand blobs from the database without having to do a round-trip conversion.

Instance Methods [hide private]
 
__init__(self, job, filename)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__enter__(self)
 
__exit__(self, *a)
 
writeHeader(self, filename)
 
close(self)
 
write(self, s)

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, job, filename)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)