From f23fc837fe45975217f5b15fccb753560e795eb6 Mon Sep 17 00:00:00 2001 From: Adam Tyson Date: Tue, 30 Apr 2024 16:38:12 +0100 Subject: [PATCH] Pass n_free_cpus to worker --- brainreg/napari/register.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brainreg/napari/register.py b/brainreg/napari/register.py index 38d2927..9a37e6b 100644 --- a/brainreg/napari/register.py +++ b/brainreg/napari/register.py @@ -403,7 +403,7 @@ def get_gui_logging_args(): ) @thread_worker - def run(): + def run(n_free_cpus): paths = Paths(pathlib.Path(registration_output_folder)) niftyreg_args = NiftyregArgs( @@ -495,7 +495,7 @@ def run(): f"{paths.registration_output_folder}" ) - worker = run() + worker = run(n_free_cpus) if not block: worker.returned.connect(load_registration_as_layers)