populse / populse_mia

Multiparametric Image Analysis
Other
10 stars 9 forks source link

[Completion bug] Completion only works once #271

Closed LStruber closed 2 years ago

LStruber commented 2 years ago

Minimum steps to reproduce:

It fails during initialization with the following message: image

Tested on a fresh bv_maker, with populse_mia on master and mia_processes on master, both up-to-date

NOTE: If you run the brick alone (without exporting plugs), it works !

By investigating a bit, I identified the problem: In init_pipeline() function of pipeline_manage_tab.py, the workflow returned by workflow_from_pipeline function (of Capsul) should contains the output file (in example case smoothed_files). This is the case at the initialization of the first brick, and not the second time (see self.workflow.jobs[1].param_dict['smoothed_files'] after creating the workflow in both cases). This make me think that the issue could come from Capsul... @denisri would you have an idea why "sometimes" the output file is not present in the workflow param_dict ?

LStruber commented 2 years ago

Note that you can relaunch the first pipeline, even after the error occured

denisri commented 2 years ago

I'm looking at it. Completion seems to fail for the second pipeline. I don't know why it's different and why it fails (yet), but I can reproduce the problem.

denisri commented 2 years ago

OK I think it's fixed: it did not actually depend on the 1st/second tab in the pipeline manager, but whether you had clicked on the node using the left button before exporting its parameters ;) I explain:

servoz commented 2 years ago

@LStruber can you check and report from your side, please ?

LStruber commented 2 years ago

It's indeed working now. I close the ticket.