This repository was archived by the owner on Jun 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Load and visualize an arbitrary workflow file #9
Copy link
Copy link
Open
Labels
Description
Open any workflow file and visualize the workflow. Enough information should be provided in the workflow files.
For each node, the workflow files have an entry names terminals which is a dictionary of terminals with options for each terminal. Only values that are not the default values are stored.
Default terminal values:
DEFAULT_TERMINAL = {
'widget': None,
'in': False,
'out': False,
'showlabel': True,
'items': [],
'min': -999999,
'max': 999999,
'dtype': None,
'value': None,
'flipped': False,
'multiinput': False,
'checkable': False,
'columndelegate': {},
'rowdelegate': {},
'columns': [],
'rows': [],
'buttons': ['btn1'],
'browsetype': 'open',
'name': 'terminal',
'selectionBehavior': 'cell',
'selectionMode': 'single'}
So for a single node, it would look like:
{
"simple node": {
"type": "Node",
"name": "Simple Node",
"uniquename": "simple node",
"pos": [
4417.0,
4645.0
],
"terminals": {
"input 1": {
"in": True
},
"input 2": {
"in": True
},
"output 1": {
"out": True
}
}
}
}
Reactions are currently unavailable