schrodinger.application.models.datamodels.composite module

schrodinger.application.models.datamodels.composite.index_by_identity(seq, obj)
schrodinger.application.models.datamodels.composite.cast_value_string(value_string: str, type_: InputType)
class schrodinger.application.models.datamodels.composite.CompositeInput(*args, _param_type=<object object>, **kwargs)

Bases: CompoundParam

input_def: InputDef

A parameter of the class.

input_configs: list[InputConfig]

A parameter of the class.

getValueString()
isInherited() bool
isUnspecified() bool
getValue()
getBottomInputConfig() InputConfig | None
getBottomConstraint() ChildConstraint

The child_constraint of the bottom (last) input config.

Used when creating a new child input config to inherit the parent’s constraint.

getParentConstraint() ChildConstraint

The constraint imposed by the parent configuration on this input.

Used after a child input config has been added to get the constraint imposed on it by its parent (second-to-last in the list).

getName() str
getInputType() InputType
isColumnInput() bool

Return True if this represents a column input.

addInputConfig(input_config: InputConfig = None)
makeInputConfig() InputConfig
validateBottomInputConfig()
validateInputConfig(input_config: InputConfig)
input_configsChanged

A pyqtSignal emitted by instances of the class.

input_configsReplaced

A pyqtSignal emitted by instances of the class.

input_defChanged

A pyqtSignal emitted by instances of the class.

input_defReplaced

A pyqtSignal emitted by instances of the class.

schrodinger.application.models.datamodels.composite.cast_to_value_string(value, output, row_source_id=None) str
class schrodinger.application.models.datamodels.composite.CompositeOutput(*args, _param_type=<object object>, **kwargs)

Bases: CompoundParam

output_def: OutputDef

A parameter of the class.

output_configs: list

A parameter of the class.

getName() str
getOutputType() OutputType
output_configsChanged

A pyqtSignal emitted by instances of the class.

output_configsReplaced

A pyqtSignal emitted by instances of the class.

output_defChanged

A pyqtSignal emitted by instances of the class.

output_defReplaced

A pyqtSignal emitted by instances of the class.

class schrodinger.application.models.datamodels.composite.CompositeModel(*args, _param_type=<object object>, **kwargs)

Bases: CompoundParam

inputs: list[CompositeInput]

A parameter of the class.

outputs: list[CompositeOutput]

A parameter of the class.

configs: list[ModelConfiguration]

A parameter of the class.

__init__(definition: ModelDefinition = None, configs: list[ModelConfiguration] = None, **kwargs)
definition: ModelDefinition

A parameter of the class.

createInputs()
createOutputs()
getBottomConfig() ModelConfiguration | None
setRowSource(row_source)
getRowSource()
setRowSink(row_sink)
getRowSink()
addConfigs(configs: list[ModelConfiguration])
addConfig(config: ModelConfiguration = None)
makeConfig() ModelConfiguration
validateConfig(config: ModelConfiguration)
configsChanged

A pyqtSignal emitted by instances of the class.

configsReplaced

A pyqtSignal emitted by instances of the class.

definitionChanged

A pyqtSignal emitted by instances of the class.

definitionReplaced

A pyqtSignal emitted by instances of the class.

inputsChanged

A pyqtSignal emitted by instances of the class.

inputsReplaced

A pyqtSignal emitted by instances of the class.

outputsChanged

A pyqtSignal emitted by instances of the class.

outputsReplaced

A pyqtSignal emitted by instances of the class.

validateBottomConfig()