- separate output from progress bar

This commit is contained in:
Wim Pomp
2026-01-08 17:18:26 +01:00
parent 2cff1a1515
commit 81d0362540
2 changed files with 9 additions and 3 deletions

View File

@@ -398,9 +398,15 @@ class ParPool:
def finalize_task(self, task: Task) -> Any:
code, *args = task.status
if task.out:
print(task.out, end="")
if hasattr(self.bar, "write"):
self.bar.write(task.out, end="")
else:
print(task.out, end="")
if task.err:
print(task.err, end="")
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)
return task.result

View File

@@ -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" }