BasicCollector: Always use p_umap, so that progress bar is visible

This commit is contained in:
2025-12-08 10:32:44 -06:00
parent 1f59ed4065
commit 7fd88b0a3d

View File

@@ -93,15 +93,11 @@ class BasicCollector:
print(f"Error processing: data_filename")
traceback.print_exc()
if n_jobs > 1:
p_umap(
_collect,
filenames,
num_cpus=n_jobs,
desc="collect",
smoothing=0,
disable=not progress,
)
else:
for filename in filenames:
_collect(filename)
p_umap(
_collect,
filenames,
num_cpus=n_jobs,
desc="collect",
smoothing=0,
disable=not progress,
)