pyiron_workflow.nodes.static_io module

class pyiron_workflow.nodes.static_io.StaticNode(*args, label: str | None = None, parent: Composite | None = None, delete_existing_savefiles: bool = False, autoload: BackendIdentifier | StorageInterface | None = None, autorun: bool = False, checkpoint: BackendIdentifier | StorageInterface | None = None, **kwargs)[source]

Bases: Node, HasIOPreview, ABC

A node whose IO specification is available at the class level.

Actual IO is then constructed from the preview at instantiation.

property color: str

For drawing the graph

display_state(state=None, ignore_private=True)[source]

A dictionary of JSON-compatible objects based on the object state (plus whatever modifications to the state the class designer has chosen to make).

Anything that fails to dump to JSON gets cast as a string and then dumped.

Parameters:
  • state (dict|None) – The starting state. Default is None which uses __getstate__, but available in case child classes want to first sanitize the state values.

  • ignore_private (bool) – Whether to ignore or include any state element whose key starts with ‘_’. Default is True, only show public data.

Return type:

dict

property inputs: Inputs
property outputs: OutputsWithInjection