__init__(self,
filename,
index=1,
error_handler=None,
ignore_errors=False,
input_string=None,
import_sdprop_as_string=False,
import_sdprop_per_file=True)
(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.
ignore_errors (bool) - If True, bad structures will be skipped instead of raising an
exception.
input_string (string) - A string with the contents of an SD format file. If provided, the
filename argument is ignored.
import_sdprop_as_string (bool) - Import all properties as strings. Setting this to True speeds
file reading.
import_sdprop_per_file (bool) - Setting this to True indicates that all structures in the file
will have the same set of properties. If this can be guaranteed,
it speeds file reading.
- Overrides:
object.__init__
|