The line that I posted the link to (self.logProcessOutput()) notifies the GUI about the new output by calling the self.log callback. I would recommend to attach a debugger add a breakpoint in logProcessOutput and execute the code step by step so that you can see what methods are called, check type of any variables, etc.
Hi Andras,
Thank you so much for all your suggestions and help.
could you please suggest the best way to avoid any force quit by slicer. I successfully wrote the python scripted module. The purpose is to run 300 images and get the segmentation automatically using bratstoolkit and managing the directories it create for 300 images. On top of that I am using 3D Slicer to apply the transform to the segmented region of interest to get it aligned with the original MRI for each of these images and saving the transformed segmentation.
The slicer windows pop up telling to force quit or wait? how to get rid of this issue? I did wait every time and then it runs fine but how to avoid this issue?
Also i am using the nightly build version of slicer not the stable release.
The question in this topic has been answered. If you have a new question then please create a new topic. Be specific. If you just say that Slicer hangs but we don’t know what you did then of course we have no idea what to do about it.