- separate output from progress bar
This commit is contained in:
@@ -398,8 +398,14 @@ class ParPool:
|
||||
def finalize_task(self, task: Task) -> Any:
|
||||
code, *args = task.status
|
||||
if task.out:
|
||||
if hasattr(self.bar, "write"):
|
||||
self.bar.write(task.out, end="")
|
||||
else:
|
||||
print(task.out, end="")
|
||||
if task.err:
|
||||
if hasattr(self.bar, "write"):
|
||||
self.bar.write(task.err, end="")
|
||||
else:
|
||||
print(task.err, end="")
|
||||
getattr(self, code)(task, *args)
|
||||
self.tasks.pop(task.handle)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "parfor"
|
||||
version = "2026.1.2"
|
||||
version = "2026.1.3"
|
||||
description = "A package to mimic the use of parfor as done in Matlab."
|
||||
authors = [
|
||||
{ name = "Wim Pomp-Pervova", email = "wimpomp@gmail.com" }
|
||||
|
||||
Reference in New Issue
Block a user