You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it would be great to have brainstorm handle multiple progress bar.
Use case
When we lunch a pipleline on a set of files, it would be great to have a progress bar indicating the how many subject have been process while still allowing the executed process to have their own progress bar (case for some process being long to execute such as MEM).
Toy example:
bst_progress('start', 'External Loop', '', 0, 10);
for iSubject =1:10
internal_loop();
bst_progress('inc', 1);
end
bst_progress('stop');
function internal_loop()
N =20;
bst_progress('start', 'Internal Loop', '', 0, N);
for i =1:N
pause(1)
bst_progress('inc', 1);
end
bst_progress('stop');
end
Suggestions:
-> bst_progress('start', ...) is always creating a new windows; and store it as a vector in GlobalData.Program.ProgressBar
-> all following function call are updating the latest created windows: pBar = GlobalData.Program.ProgressBar(end);
-> bst_progress('stop'); remove the delete the windows and remove it from GlobalData.Program.ProgressBar
Hello,
it would be great to have brainstorm handle multiple progress bar.
Use case
When we lunch a pipleline on a set of files, it would be great to have a progress bar indicating the how many subject have been process while still allowing the executed process to have their own progress bar (case for some process being long to execute such as MEM).
Toy example:
Suggestions:
-> bst_progress('start', ...) is always creating a new windows; and store it as a vector in GlobalData.Program.ProgressBar
-> all following function call are updating the latest created windows:
pBar = GlobalData.Program.ProgressBar(end);
-> bst_progress('stop'); remove the delete the windows and remove it from GlobalData.Program.ProgressBar
It's working, the only issue is that there is one window per progress bar, but I guess that's ok as we are not expecting to have more than 2 or 3 progress bars active simultaneously. I can open a PR if you want -- Edouard2laire@dc00dcd :)
If we want only one window, we might use this toolbox: https://www.mathworks.com/matlabcentral/fileexchange/26589-multiwaitbar
HS :
In case, that's helpful for anyone; here is how the current progress bar can be used with parfor:
The text was updated successfully, but these errors were encountered: