From a9e418bf8b9e9085373b2f13993db26b091f3d22 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 11 Nov 2023 17:56:02 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyflask/apis/neuroconv.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pyflask/apis/neuroconv.py b/pyflask/apis/neuroconv.py index 9a8c3721f..9cf10ec0e 100644 --- a/pyflask/apis/neuroconv.py +++ b/pyflask/apis/neuroconv.py @@ -133,7 +133,9 @@ def post(self): if "number_of_jobs" not in upload_options: upload_options.update(number_of_jobs=psutil.cpu_count(logical=False)) if "number_of_threads" not in upload_options: - upload_options.update(number_of_threads=psutil.cpu_count(logical=True) / psutil.cpu_count(logical=False)) + upload_options.update( + number_of_threads=psutil.cpu_count(logical=True) / psutil.cpu_count(logical=False) + ) return upload_project_to_dandi(**upload_options) @@ -153,7 +155,9 @@ def post(self): if "number_of_jobs" not in upload_options: upload_options.update(number_of_jobs=psutil.cpu_count(logical=False)) if "number_of_threads" not in upload_options: - upload_options.update(number_of_threads=psutil.cpu_count(logical=True) / psutil.cpu_count(logical=False)) + upload_options.update( + number_of_threads=psutil.cpu_count(logical=True) / psutil.cpu_count(logical=False) + ) return upload_folder_to_dandi(**upload_options)