- gmap bugfix
This commit is contained in:
@@ -208,8 +208,10 @@ def gmap(fun: Callable[[Iteration, Any, ...], Result], iterable: Iterable[Iterat
|
|||||||
def chunk_fun(iterable: Iterable, *args: Any, **kwargs: Any) -> list[Result]: # noqa
|
def chunk_fun(iterable: Iterable, *args: Any, **kwargs: Any) -> list[Result]: # noqa
|
||||||
return [fun(iteration, *args, **kwargs) for iteration in iterable]
|
return [fun(iteration, *args, **kwargs) for iteration in iterable]
|
||||||
|
|
||||||
args = args or ()
|
if args is None:
|
||||||
kwargs = kwargs or {}
|
args = ()
|
||||||
|
if kwargs is None:
|
||||||
|
kwargs = {}
|
||||||
|
|
||||||
if 'total' not in bar_kwargs:
|
if 'total' not in bar_kwargs:
|
||||||
bar_kwargs['total'] = sum(iterable.lengths)
|
bar_kwargs['total'] = sum(iterable.lengths)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "parfor"
|
name = "parfor"
|
||||||
version = "2024.10.1"
|
version = "2024.10.2"
|
||||||
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 = ["Wim Pomp <wimpomp@gmail.com>"]
|
authors = ["Wim Pomp <wimpomp@gmail.com>"]
|
||||||
license = "GPLv3"
|
license = "GPLv3"
|
||||||
|
|||||||
Reference in New Issue
Block a user