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
param (schrodinger.models.parameters.CompoundParam) – Compound param instance
destination_obj (object or NoneType) – Destination object or None to create empty
- Returns
Destination object containing data from the compound param
- Return type
object