version bump

This commit is contained in:
2024-02-14 09:24:07 +01:00
parent f0502d93c5
commit 3e57d5ffc5
2 changed files with 7 additions and 2 deletions

View File

@@ -12,10 +12,15 @@ def compute_stuff(num: int, pbar: sc.threading.Multibar):
time.sleep(0.05 * speed * random.random()) time.sleep(0.05 * speed * random.random())
# if random.random() > 0.98: # if random.random() > 0.98:
# print(f"some text {i}") # print(f"some text {i}")
return num
def main(): 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__": if __name__ == "__main__":

View File

@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "scgenerator" name = "scgenerator"
version = "0.4.3" version = "0.4.4"
description = "Simulate nonlinear pulse propagation in optical fibers" description = "Simulate nonlinear pulse propagation in optical fibers"
readme = "README.md" readme = "README.md"
authors = [{ name = "Benoit Sierro", email = "benoit.sierro@iap.unibe.ch" }] authors = [{ name = "Benoit Sierro", email = "benoit.sierro@iap.unibe.ch" }]