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)