- add close method to PoolSingleton for backwards compatibility
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
[](https://github.com/wimpomp/parfor/actions/workflows/pytest.yml)
|
[](https://github.com/wimpomp/parfor/actions/workflows/publish.yml)
|
||||||
|
|
||||||
# Parfor
|
# Parfor
|
||||||
Used to parallelize for-loops using parfor in Matlab? This package allows you to do the same in python.
|
Used to parallelize for-loops using parfor in Matlab? This package allows you to do the same in python.
|
||||||
|
|||||||
@@ -478,6 +478,9 @@ class ParPool:
|
|||||||
class PoolSingleton:
|
class PoolSingleton:
|
||||||
cpu_count: int = os.cpu_count()
|
cpu_count: int = os.cpu_count()
|
||||||
|
|
||||||
|
def close(self) -> None:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class Worker:
|
class Worker:
|
||||||
nested: bool = False
|
nested: bool = False
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "parfor"
|
name = "parfor"
|
||||||
version = "2026.1.5"
|
version = "2026.2.0"
|
||||||
description = "A package to mimic the use of parfor as done in Matlab."
|
description = "A package to mimic the use of parfor as done in Matlab."
|
||||||
authors = [
|
authors = [
|
||||||
{ name = "Wim Pomp-Pervova", email = "wimpomp@gmail.com" }
|
{ name = "Wim Pomp-Pervova", email = "wimpomp@gmail.com" }
|
||||||
|
|||||||
Reference in New Issue
Block a user