Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant