Closed servoz closed 11 months ago
Other name issue has been noticed. See the ticket #263.
The "main" name comes from the capsul.pipeline.pipeline_workflow.workflow_from_pipeline() method when the pipeline is in fact a single process.
Maybe I'm missing something (maybe there's a reason for using 'main' as the name in all cases?) but as this is a pipeline with a single process, the node must take the name of the class + '_1'.
So, I think this line should be:
new_pipeline.add_process(pipeline.name.lower() + "_1", pipeline)
@denisri, what do you think? If you don't see a side effect I'm missing, I can make the change directly in capsul.
No problem, it's fine... it was just a bit of code done too quickly.
Done.
The minimum steps to reproduce :
If we now want to get things right:
We see on the status bar: Pipeline "NoName" has been correctly run We see on the stdout: And we see in DataBrowser for the Bricks tag (this is the most important problem, as we lose the data history in this case) :
EDIT: If we hit the
main
button, mia crashs with this exception: