From bb74d6e3b01a6407ba1b67a62c3cdea2aa67848f Mon Sep 17 00:00:00 2001 From: "w.pomp" Date: Wed, 21 Jan 2026 15:27:45 +0100 Subject: [PATCH] - add close method to PoolSingleton for backwards compatibility --- README.md | 2 +- parfor/__init__.py | 3 +++ pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1b0059a..18fbf34 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![pytest](https://github.com/wimpomp/parfor/actions/workflows/pytest.yml/badge.svg)](https://github.com/wimpomp/parfor/actions/workflows/pytest.yml) +[![pytest](https://github.com/wimpomp/parfor/actions/workflows/pytest.yml/badge.svg)](https://github.com/wimpomp/parfor/actions/workflows/publish.yml) # Parfor Used to parallelize for-loops using parfor in Matlab? This package allows you to do the same in python. diff --git a/parfor/__init__.py b/parfor/__init__.py index 53fd5b3..094c496 100644 --- a/parfor/__init__.py +++ b/parfor/__init__.py @@ -478,6 +478,9 @@ class ParPool: class PoolSingleton: cpu_count: int = os.cpu_count() + def close(self) -> None: + pass + class Worker: nested: bool = False diff --git a/pyproject.toml b/pyproject.toml index 3a91044..78e2d96 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "parfor" -version = "2026.1.5" +version = "2026.2.0" description = "A package to mimic the use of parfor as done in Matlab." authors = [ { name = "Wim Pomp-Pervova", email = "wimpomp@gmail.com" }