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

Load and visualize an arbitrary workflow file #9

Open
@onlyjus

Description

@onlyjus

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
            }
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions