- 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
|
||||
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:
|
||||
cpu_count: int = os.cpu_count()
|
||||
|
||||
def close(self) -> None:
|
||||
pass
|
||||
|
||||
|
||||
class Worker:
|
||||
nested: bool = False
|
||||
|
||||
@@ -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" }
|
||||
|
||||
Reference in New Issue
Block a user