schrodinger.models.adapters.inputconfig module

class schrodinger.models.adapters.inputconfig.ParamToConfigObj

Bases: schrodinger.models.adapters.abstractadapter.AbstractAdapter

Adapter to copy data from a compound param to a config obj

If the configobj is supplied and has a spec, the compound param must have subparams with the same name (or lowercase equivalent) as any required or unset keyword for the configobj to be valid.

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

class schrodinger.models.adapters.inputconfig.ParamToInputConfig

Bases: schrodinger.models.adapters.inputconfig.ParamToConfigObj

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