Closed servoz closed 3 years ago
This is mainly a debug message, but the real question is: what is the error and why (the print(e)
but it doesn't seem to be in the output you have exhibited here). The try.. except
allows not to stop execution and still process the rest of the jobs, but if it happens, then the output values are actually not set on the process output parameters traits, which in fact can be a real problem if outputs are used by a later job. Thus just dropping the outputs is not a really acceptable solution.
So I have set this prints to debug why parameters are not set in some situations, but did not solve it yet. For instance in your example, why are the values not acceptable by the traits of the process, do they have a wrong type or anything else ?
I think I didn't make myself clear ...
We can't see the output of print(e)
since in the current code (comes from capsul.engine.run.wait()) print(e)
is executed only when the exception is raised...
Here it is not the case ... And this is the real question of this ticket I think ...
Thanks for the explanation of the try ..except.
Oh OK I didn't understand... It's a mistake, yes of course... I'm fixing that right now.
I see this message at the end of the calculation of a process (say for the process/brick spm Smooth of mia_processes):
I confess that I do not understand this message that comes from capsul.engine.run.wait()
Since we see the previous message in the standard output, this means that the try statement has worked without raising an exception. So why write in this case, in the standard output, that there is an error? Wouldn't it rather be?:
This is not very serious because it does not prevent the proper working of mia, but it pollutes the stdout unnecessarily... Please @denisri , can you give us your opinion on the subject?