schrodinger.models.presets module¶
- class schrodinger.models.presets.PanelPreset(*args, _param_type=<object object>, **kwargs)¶
Bases:
schrodinger.models.parameters.CompoundParam
- serialized_panel: str¶
A parameter of the class.
- serialized_panelChanged¶
A
pyqtSignal
emitted by instances of the class.
- serialized_panelReplaced¶
A
pyqtSignal
emitted by instances of the class.
- class schrodinger.models.presets.PresetManager(panel_name, model_class=None)¶
Bases:
object
- __init__(panel_name, model_class=None)¶
- model_class = None¶
- defineInputParams()¶
- defineIgnoredParams()¶
- savePreset(name: str, model: schrodinger.models.parameters.CompoundParam)¶
- savePresetToFile(fname: str, model: schrodinger.models.parameters.CompoundParam)¶
- exportPresets(export_fname: str)¶
Exports all presets to an option file at export_fname.
- importPresets(import_fname: str, model: schrodinger.models.parameters.CompoundParam)¶
Imports presets from an option file at import_fname. :raises JSONDecodeError: the opts file is not valid JSON or correct class data
- loadPreset(name: str, model: schrodinger.models.parameters.CompoundParam)¶
- loadPresetFromFile(fname: str, model: schrodinger.models.parameters.CompoundParam)¶
- deletePreset(name)¶
- setDefaultPreset(name)¶
- loadDefaultPreset(model)¶
- getAvailablePresets()¶
- getDefaultPreset()¶
- clearDefaultPreset()¶
- movePreset(name, direction)¶
- class schrodinger.models.presets.TaskPanelPresetManager(panel_name, model_class, panel_tasks)¶
Bases:
schrodinger.models.presets.PresetManager
A subclass of PresetManager that ignores the name and job config for tasks. The tasks are specified with the
panel_tasks
constructor argument which expects a list of abstract params of tasks onmodel_class
.- __init__(panel_name, model_class, panel_tasks)¶
- defineIgnoredParams()¶