schrodinger.application.models.gui.tables module

class schrodinger.application.models.gui.tables.TableWidget(*args, spec=None, autospec=False, plp=None, view=None, **kwargs)

Bases: PLPTableWidget

paramDoubleClicked

A pyqtSignal emitted by instances of the class.

initSetUp()

Creates widget from ui and stores it ui_widget.

Suggested subclass use: create and initialize subwidgets, and connect signals.

scrollToParam(param: CompoundParam) None
Default = 'default'
FooterContrast = 'footer_contrast'
Panel = 'panel'
class schrodinger.application.models.gui.tables.DefaultRowTable(*args, spec=None, autospec=False, plp=None, view=None, **kwargs)

Bases: TableWidget

addDefaultRow() None

Add a default row to the table. This should be implemented in subclasses to define what a default row looks like.

defineDefaultRow() CompoundParam
Default = 'default'
FooterContrast = 'footer_contrast'
Panel = 'panel'
schrodinger.application.models.gui.tables.get_enum_name_display(member: Enum) str

Return a display representation for an enum member name.

class schrodinger.application.models.gui.tables.InputDefTableSpec(*args, _param_type=<object object>, **kwargs)

Bases: TableSpec

name_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
display_name_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
docstring_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
default_val_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
input_type_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
is_column_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
getInputTypeDisplay(input_type: InputType) str
getInputType(input_type: InputType) InputType
getInputTypeComboItems(input_type: InputType) dict[str, InputType]
getCheckState(is_checked: bool) bool
getIsColumnToolTip(is_column: bool) str
columnsChanged

A pyqtSignal emitted by instances of the class.

columnsReplaced

A pyqtSignal emitted by instances of the class.

class schrodinger.application.models.gui.tables.InputDefTableWidget(*args, **kwargs)

Bases: DefaultRowTable

__init__(*args, **kwargs)
Parameters:
  • spec (TableSpec) – Table specification. Will be ignored if autospec is True.

  • autospec (bool) – Whether to automatically generate the table specification from the PLP item fields.

  • plp (ParamListParam) – ParamListParam containing data. It is more common to set the plp using mappers.

  • view (QtWidgets.QTableView) – Custom table view instance. If None, an instance of table_helper.SampleDataTableView will be created.

defineDefaultRow() InputDef
Default = 'default'
FooterContrast = 'footer_contrast'
Panel = 'panel'
class schrodinger.application.models.gui.tables.OutputDefTableSpec(*args, _param_type=<object object>, **kwargs)

Bases: TableSpec

name_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
display_name_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
docstring_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
output_type_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
getOutputTypeDisplay(output_type: OutputType) str
getOutputType(output_type: OutputType) OutputType
getOutputTypeComboItems(output_type: OutputType) dict[str, OutputType]
columnsChanged

A pyqtSignal emitted by instances of the class.

columnsReplaced

A pyqtSignal emitted by instances of the class.

class schrodinger.application.models.gui.tables.OutputDefTableWidget(*args, **kwargs)

Bases: DefaultRowTable

__init__(*args, **kwargs)
Parameters:
  • spec (TableSpec) – Table specification. Will be ignored if autospec is True.

  • autospec (bool) – Whether to automatically generate the table specification from the PLP item fields.

  • plp (ParamListParam) – ParamListParam containing data. It is more common to set the plp using mappers.

  • view (QtWidgets.QTableView) – Custom table view instance. If None, an instance of table_helper.SampleDataTableView will be created.

defineDefaultRow() OutputDef
Default = 'default'
FooterContrast = 'footer_contrast'
Panel = 'panel'
class schrodinger.application.models.gui.tables.CompositeInputTableSpec(*args, _param_type=<object object>, **kwargs)

Bases: TableSpec

name_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
value_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
type_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
inheritance_mode_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
getInputTypeDisplay(input_type: InputType) str
getInheritanceModeDisplay(mode: ChildInheritanceMode) str
getInheritanceMode(mode: ChildInheritanceMode) ChildInheritanceMode
getInheritanceModeComboItems(mode: ChildInheritanceMode) dict[str, ChildInheritanceMode]
columnsChanged

A pyqtSignal emitted by instances of the class.

columnsReplaced

A pyqtSignal emitted by instances of the class.

class schrodinger.application.models.gui.tables.CompositeInputTableWidget(*args, **kwargs)

Bases: TableWidget

__init__(*args, **kwargs)
Parameters:
  • spec (TableSpec) – Table specification. Will be ignored if autospec is True.

  • autospec (bool) – Whether to automatically generate the table specification from the PLP item fields.

  • plp (ParamListParam) – ParamListParam containing data. It is more common to set the plp using mappers.

  • view (QtWidgets.QTableView) – Custom table view instance. If None, an instance of table_helper.SampleDataTableView will be created.

Default = 'default'
FooterContrast = 'footer_contrast'
Panel = 'panel'
class schrodinger.application.models.gui.tables.DefinitionsTableSpec(*args, _param_type=<object object>, **kwargs)

Bases: TableSpec

name_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
description_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
version_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
columnsChanged

A pyqtSignal emitted by instances of the class.

columnsReplaced

A pyqtSignal emitted by instances of the class.

class schrodinger.application.models.gui.tables.DefinitionsTableWidget(*args, **kwargs)

Bases: TableWidget

__init__(*args, **kwargs)
Parameters:
  • spec (TableSpec) – Table specification. Will be ignored if autospec is True.

  • autospec (bool) – Whether to automatically generate the table specification from the PLP item fields.

  • plp (ParamListParam) – ParamListParam containing data. It is more common to set the plp using mappers.

  • view (QtWidgets.QTableView) – Custom table view instance. If None, an instance of table_helper.SampleDataTableView will be created.

setFilterString(filter_str: str) None
Default = 'default'
FooterContrast = 'footer_contrast'
Panel = 'panel'
class schrodinger.application.models.gui.tables.ConfigurationsTableSpec(*args, _param_type=<object object>, **kwargs)

Bases: TableSpec

name_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
description_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
version_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
columnsChanged

A pyqtSignal emitted by instances of the class.

columnsReplaced

A pyqtSignal emitted by instances of the class.

class schrodinger.application.models.gui.tables.ConfigurationsProxyModel(*args, **kwargs)

Bases: QSortFilterProxyModel

A proxy model that implements filtering certain rows based on different categories.

__init__(*args, **kwargs)
setDefinitionId(definition_id: str | None) None
filterAcceptsRow(self, source_row: int, source_parent: QModelIndex) bool
class schrodinger.application.models.gui.tables.ConfigurationsTableWidget(*args, **kwargs)

Bases: TableWidget

__init__(*args, **kwargs)
Parameters:
  • spec (TableSpec) – Table specification. Will be ignored if autospec is True.

  • autospec (bool) – Whether to automatically generate the table specification from the PLP item fields.

  • plp (ParamListParam) – ParamListParam containing data. It is more common to set the plp using mappers.

  • view (QtWidgets.QTableView) – Custom table view instance. If None, an instance of table_helper.SampleDataTableView will be created.

setFilterString(filter_str: str) None
setDefinitionId(definition_id: str | None) None
Default = 'default'
FooterContrast = 'footer_contrast'
Panel = 'panel'
schrodinger.application.models.gui.tables.get_timedelta_display(delta: timedelta) str
class schrodinger.application.models.gui.tables.ExecutionRecordsTableSpec(*args, _param_type=<object object>, **kwargs)

Bases: TableSpec

config_name_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
verion_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
start_time_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
runtime_col = <schrodinger.ui.qt.mapperwidgets.plptable.ParamColumn object>
user_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>
getConfigurationName(config_id: str)
getDateTimeDisplay(dt: datetime) str
getRuntimeDisplay(record: ExecutionRecord) str
setConfigurationIdsToNames(config_ids_to_names: dict[str, str]) None
columnsChanged

A pyqtSignal emitted by instances of the class.

columnsReplaced

A pyqtSignal emitted by instances of the class.

class schrodinger.application.models.gui.tables.ExecutionRecordsProxyModel(*args, **kwargs)

Bases: QSortFilterProxyModel

__init__(*args, **kwargs)
setConfigurationId(config_id: str | None) None
filterAcceptsRow(self, source_row: int, source_parent: QModelIndex) bool
class schrodinger.application.models.gui.tables.ExecutionRecordsTableWidget(*args, **kwargs)

Bases: TableWidget

__init__(*args, **kwargs)
Parameters:
  • spec (TableSpec) – Table specification. Will be ignored if autospec is True.

  • autospec (bool) – Whether to automatically generate the table specification from the PLP item fields.

  • plp (ParamListParam) – ParamListParam containing data. It is more common to set the plp using mappers.

  • view (QtWidgets.QTableView) – Custom table view instance. If None, an instance of table_helper.SampleDataTableView will be created.

setConfigurationIdsToNames(config_ids_to_names: dict[str, str]) None
setConfigurationId(configuration_id: str | None) None
Default = 'default'
FooterContrast = 'footer_contrast'
Panel = 'panel'