File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
src/geant4_python_application/files Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -241,15 +241,14 @@ def install_datasets(show_progress: bool = True):
241241 disable = not show_progress ,
242242 unit = "B" ,
243243 unit_scale = True ,
244- ) as pbar :
245- with concurrent .futures .ThreadPoolExecutor (
246- max_workers = len (datasets_to_download )
247- ) as executor :
248- futures = [
249- executor .submit (_download_extract_dataset , dataset , pbar )
250- for dataset in datasets_to_download
251- ]
252- concurrent .futures .wait (futures )
244+ ) as pbar , concurrent .futures .ThreadPoolExecutor (
245+ max_workers = len (datasets_to_download )
246+ ) as executor :
247+ futures = [
248+ executor .submit (_download_extract_dataset , dataset , pbar )
249+ for dataset in datasets_to_download
250+ ]
251+ concurrent .futures .wait (futures )
253252
254253 if show_progress :
255254 total_size_gb = sum (
You can’t perform that action at this time.
0 commit comments