Open M40V opened 5 years ago
Comment by M40V Tuesday Jun 18, 2019 at 19:48 GMT
This functionnality will be fully incorporated when we will shift to the capsul engine. Processes will have requirements and it will be mandatory to have these requirements enabled to initialize and run the pipeline.
Currently we are checking during the initialization if the processes are from nipype (pipeline_manager_tab.py), we could add a condition to stop the initialization if SPM is not correctly defined in the config.yml. It will resolve this issue before the shift to the capsul engine.
Comment by servoz Tuesday Jun 25, 2019 at 15:42 GMT
It is very desirable that the mia version in production never crashes.
We don't know yet when the capsul_engine will definitely be used in mia and I confess that the scope of action stay a little bit confuse (the capsul engine is still in the process of being written by the capsul team).
So, I think we need to make a little change ASAP to fix this possibility of a crash of mia
Comment by M40V Thursday Jun 27, 2019 at 16:10 GMT
The verification will occur during the initialization of the pipeline. This verification can occur at different points, depending on whether MIA should always run with SPM or if SPM should be configured only when specific processes require it. We can then inform the user that the pipeline wasn't initialized with the statusbar and an alert. Currently nothing forbids an user to run a pipeline, even if it wasn't initialized correctly, should we add a verification to avoid these behaviors ?
Comment by servoz Friday Jun 28, 2019 at 08:31 GMT
As we have seen, it may be considered to merge the initialisation and the launch of the pipeline run (currently, users must click on an Initialise button and a Run button), which would solve the problem of a launch without having initialised. On the other hand, it might be very desirable for the user to know before the actual start of all processes, if everything goes well (which can be crucial in the case of iteration, that can take a long time). A complete initialisation of the entire pipeline through all iterated tags could therefore be a real improvement.
Comment by M40V Wednesday Jul 31, 2019 at 15:02 GMT
There is two parts to this issue. The first part is about the configuration of Matlab and SPM in Mia preferences and the second part is during the initialization if SPM or Matlab are used by the brick (check if Nipype is used or if user bricks use spm/matlab).
Issue by BlancaNietoPetinal Tuesday Jun 18, 2019 at 10:43 GMT _Originally opened as https://github.com/populse/populse_mia/issues/93_
Describe the bug MIA tries to run pipelines even if Matlab and SPM are not configured in the preferences. However, when doing so, MIA crashes.
An unconfigured SPM in the preferences can occur, when unchecking the "Use Matlab" checkbox after enabling SPM. In this case, the "Use SPM" checkbox is disabled, and not re-enabled automatically if Matlab is enabled again.
Generated error
Notice that the option "paths=['/home/nietob/spm12']" is missing from the call to nipype.interfaces.spm.preprocess.Smooth.
To Reproduce Steps to reproduce the behavior:
Expected behavior MIA should open an error dialog, informing the user that SPM and/or Matlab needs to be enabled in the preferences. In the preferences dialog, maybe SPM should not be automatically disabled when disabling Matlab (or it should be automatically re-enabled when it was automatically disabled before).
Desktop (please complete the following information):