This commit is contained in:
Andras Schmelczer 2022-07-13 08:33:22 +02:00
parent 0585a4e4f9
commit 6106816999
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E

View file

@ -46,15 +46,16 @@ def simple_parallel_map(
"""
input_values = list(input_values) # in case the input is mistakenly not a sequence
return list(
tqdm(
parallel_map(
generator = parallel_map(
func=func,
input_values=input_values,
chunk_size=chunk_size,
concurrency=concurrency,
),
)
return list(
tqdm(
generator,
total=len(input_values),
dynamic_ncols=True,
)
)