You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when going the route, PWD -> WfMS -> PWD, in the second step, the "name"s of input nodes are re-generated (from the function arguments) by the write_workflow_json functions that uses these helpers, e.g., see here:
loads it into the WfMS and then exports it again to PWD, the result will be this:
{
"version": "0.0.1",
"nodes": [
...
{"id": 3, "type": "input", "value": 1, "name": "x"}, <-- This got replaced with the value from the targetPort...
],
"edges": [
{"target": 0, "targetPort": "x", "source": 3, "sourcePort": null},
...
]
}
Hence, in the PWD JSON schema, they somewhat present redundant information from the port information (as said above, they can still be added/modified, it's just not respected by the WfMS, or persistent on interconversions). pyiron and jobflow don't support global workflow inputs and outputs (yet), instead, these are based on the arguments of the first function(s) in the workflow. So a proper implementation is not possible at this point, but one could probably still add some helper functions instead.
As the input/output "name" attributes don't break the code and the workflows can still be executed either way, we still already keep them in the PWD for now and postpone a proper implementation for later.
The text was updated successfully, but these errors were encountered:
jan-janssen
changed the title
Dealing with the data node attribute "name"
[Suggestion] Dealing with the data node attribute "name"
May 24, 2025
Currently, when going the route, PWD -> WfMS -> PWD, in the second step, the "name"s of input nodes are re-generated (from the function arguments) by the
write_workflow_json
functions that uses these helpers, e.g., see here:python-workflow-definition/python_workflow_definition/src/python_workflow_definition/shared.py
Lines 52 to 105 in 00bc3c5
One can still, in principle, modify the "name"s in the PWD, however, when one starts with this PWD:
loads it into the WfMS and then exports it again to PWD, the result will be this:
Hence, in the PWD JSON schema, they somewhat present redundant information from the port information (as said above, they can still be added/modified, it's just not respected by the WfMS, or persistent on interconversions). pyiron and jobflow don't support global workflow inputs and outputs (yet), instead, these are based on the arguments of the first function(s) in the workflow. So a proper implementation is not possible at this point, but one could probably still add some helper functions instead.
As the input/output "name" attributes don't break the code and the workflows can still be executed either way, we still already keep them in the PWD for now and postpone a proper implementation for later.
The text was updated successfully, but these errors were encountered: