Skip to content

Commit

Permalink
fix: 🐛 create waitbar data queue unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
djmaxus committed Jul 17, 2024
1 parent 7acc040 commit 7d30513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion strata_trapper.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
cells_num = min(length(mask),G.cells.num);
mask = mask(1:cells_num);

wb_queue = parallel.pool.DataQueue;
if enable_waitbar
wb_queue = parallel.pool.DataQueue;
parforWaitbar(0,sum(mask));
afterEach(wb_queue,@parforWaitbar);
end
Expand Down

0 comments on commit 7d30513

Please sign in to comment.