Skip to content

Commit 5268c88

Browse files
style: pre-commit fixes
1 parent 22b1b68 commit 5268c88

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/geant4_python_application/files/datasets.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)