schrodinger.application.models.datamodels.versions module

Version tracking types for model definitions and configurations.

These types capture exact versions to enable reproducible model runs.

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

Bases: CompoundParam

Captures the exact versions of a definition and its configuration chain, enabling reproducible model runs.

The config_id_versions list preserves order from root to bottom of the chain.

def_id_version: VersionedRef

A parameter of the class.

config_id_versions: list[schrodinger.models.jsonable.VersionedRef]

A parameter of the class.

classmethod fromCompositeModel(composite: CompositeModel) Self

Build a VersionSnapshot from a CompositeModel.

Parameters:

composite – The composite model to capture versions from.

Returns:

A VersionSnapshot with the definition and all config versions.

getBottomConfigId() str | None

Return the ID of the last (bottom) config in the chain.

Returns:

The bottom config ID, or None if no configs.

getBottomConfigVersion() str | None

Return the version of the last (bottom) config in the chain.

Returns:

The bottom config version, or None if no configs.

config_id_versionsChanged

A pyqtSignal emitted by instances of the class.

config_id_versionsReplaced

A pyqtSignal emitted by instances of the class.

def_id_versionChanged

A pyqtSignal emitted by instances of the class.

def_id_versionReplaced

A pyqtSignal emitted by instances of the class.