pyworkflow.project.config module
- class pyworkflow.project.config.Label(name='', color=None)[source]
Bases:
Scalar
Store Label information
- EMPTY_OLD_NAME = None
- class pyworkflow.project.config.MenuConfig(text=None, value=None, icon=None, tag=None, shortCut=None, openItem=False, visible=True)[source]
Bases:
object
Menu configuration in a tree fashion. Each menu can contain submenus. Leaf elements can contain actions
Constructor for the Menu config item. Arguments:
text: text to be displayed value: internal value associated with the item. icon: display an icon with the item tag: put some tags to items
**args: pass other options to base class.
- class pyworkflow.project.config.NodeConfig(nodeId=0, x=None, y=None, selected=False, expanded=True, visible=True)[source]
Bases:
Scalar
Store Graph node information such as x, y.
- class pyworkflow.project.config.NodeConfigList[source]
Bases:
List
Store all nodes information items and also store a dictionary for quick access to nodes query.
- class pyworkflow.project.config.ProjectSettings(confs={}, **kwargs)[source]
Bases:
Object
Store settings related to a project.
- COLOR_MODES = (0, 1, 2)
- COLOR_MODE_AGE = 2
- COLOR_MODE_LABELS = 1
- COLOR_MODE_SIZE = 3
- COLOR_MODE_STATUS = 0
- cleanUpNodes(runsIds, toRemove=True)[source]
This will clean up all the nodes that do not have a matching run. This is because until now, the nodes here weren’t removes when protocols were removed.
- Parameters
runsIds – iterable with protocol’s objId to be removed.
toRemove – Passed is are to be removed. Otherwise, are the ones to keep