openforcefield.typing.engines.smirnoff.parameters.ImproperTorsionHandler.ImproperTorsionType

class openforcefield.typing.engines.smirnoff.parameters.ImproperTorsionHandler.ImproperTorsionType(**kwargs)

A SMIRNOFF torsion type for improper torsions.

Warning

This API is experimental and subject to change.

Attributes
smirks

Methods

to_dict(self[, discard_cosmetic_attributes])

Convert this ParameterType object to dict.

__init__(self, **kwargs)

Create a ParameterType

Parameters
smirksstr

The SMIRKS match for the provided parameter type.

allow_cosmetic_attributesbool optional. Default = False

Whether to permit non-spec kwargs (“cosmetic attributes”). If True, non-spec kwargs will be stored as an attribute of this parameter which can be accessed and written out. Otherwise an exception will be raised.

Methods

__init__(self, \*\*kwargs)

Create a ParameterType

to_dict(self[, discard_cosmetic_attributes])

Convert this ParameterType object to dict.

Attributes

smirks

to_dict(self, discard_cosmetic_attributes=True)

Convert this ParameterType object to dict. A unit-bearing attribute (‘X’) will be converted to two dict entries, one ([‘X’] containing the unitless value, and another ([‘X_unit’]) containing a string representation of its unit.

Parameters
discard_cosmetic_attributesbool, optional. Default = True

Whether to discard non-spec attributes of this ParameterType

Returns
smirnoff_dictdict

The SMIRNOFF-compliant dict representation of this ParameterType object.

output_unitsdict[str: simtk.unit.Unit]

A mapping from each simtk.unit.Quanitity-valued ParameterType attribute to the unit it was converted to during serialization.