openforcefield.typing.engines.smirnoff.io.
XMLParameterIOHandler
[source]¶Handles serialization/deserialization of SMIRNOFF ForceField objects from OFFXML format.
Methods
parse_file (source) |
Parse a SMIRNOFF force field definition in XML format, read from a file. |
parse_string (data) |
Parse a SMIRNOFF force field definition in XML format. |
to_file (filename, smirnoff_data) |
Write the current forcefield parameter set to a file, autodetecting the type from the extension. |
to_string (smirnoff_data) |
Write the current forcefield parameter set to an XML string. |
to_xml (smirnoff_data) |
Render the forcefield parameter set to XML. |
__init__
()¶Create a new ParameterIOHandler.
Methods
__init__ () |
Create a new ParameterIOHandler. |
parse_file (source) |
Parse a SMIRNOFF force field definition in XML format, read from a file. |
parse_string (data) |
Parse a SMIRNOFF force field definition in XML format. |
to_file (filename, smirnoff_data) |
Write the current forcefield parameter set to a file, autodetecting the type from the extension. |
to_string (smirnoff_data) |
Write the current forcefield parameter set to an XML string. |
to_xml (smirnoff_data) |
Render the forcefield parameter set to XML. |
parse_file
(source)[source]¶Parse a SMIRNOFF force field definition in XML format, read from a file.
A ParseError
is raised if the XML cannot be processed.
Parameters: |
|
---|
parse_string
(data)[source]¶Parse a SMIRNOFF force field definition in XML format.
A ParseError
is raised if the XML cannot be processed.
Parameters: |
|
---|
to_file
(filename, smirnoff_data)[source]¶Write the current forcefield parameter set to a file, autodetecting the type from the extension.
Parameters: |
|
---|