Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Load and visualize an arbitrary workflow file #9

Open
onlyjus opened this issue Jul 13, 2021 · 0 comments
Open

Load and visualize an arbitrary workflow file #9

onlyjus opened this issue Jul 13, 2021 · 0 comments
Labels

Comments

@onlyjus
Copy link
Collaborator

onlyjus commented Jul 13, 2021

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
            }
        }
    }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant