mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-08 18:38:51 -06:00
BasicCollector: Always use p_umap, so that progress bar is visible
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user