schrodinger.models.adapters.abstractadapter module

class schrodinger.models.adapters.abstractadapter.AbstractAdapter

Bases: object

Abstract class for copying data from compound params to other data classes.

Subclasses must implement _createDefaultObj and _copyItem.

Behavior can be customized by overriding the virtual methods:

_paramToDict: to customize param keywords or values _convertKeyword: to customize how all keywords are transformed

classmethod convert(param, destination_obj=None)

Copy data from the compound param to the destination object.

If no destination object is supplied, an empty one will be created.

Parameters
Returns

Destination object containing data from the compound param

Return type

object