From 3e57d5ffc5b9831c3fd9f0d875cd90d988cb3d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Sierro?= Date: Wed, 14 Feb 2024 09:24:07 +0100 Subject: [PATCH] version bump --- examples/show_multi_bar.py | 7 ++++++- pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/examples/show_multi_bar.py b/examples/show_multi_bar.py index c415d87..3399cb9 100644 --- a/examples/show_multi_bar.py +++ b/examples/show_multi_bar.py @@ -12,10 +12,15 @@ def compute_stuff(num: int, pbar: sc.threading.Multibar): time.sleep(0.05 * speed * random.random()) # if random.random() > 0.98: # print(f"some text {i}") + return num def main(): - sc.threading.apply_with_progress(compute_stuff, range(12), n_cpu=4, unpack=False) + data = sc.threading.apply_with_progress( + compute_stuff, range(12), n_cpu=4, unpack=False, n_pertask=SIZE + ) + + print(data) if __name__ == "__main__": diff --git a/pyproject.toml b/pyproject.toml index bd90388..2a4cdc0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "scgenerator" -version = "0.4.3" +version = "0.4.4" description = "Simulate nonlinear pulse propagation in optical fibers" readme = "README.md" authors = [{ name = "Benoit Sierro", email = "benoit.sierro@iap.unibe.ch" }]