Skip to content

Commit

Permalink
Pass n_free_cpus to worker
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed Apr 30, 2024
1 parent 7fc5da1 commit f23fc83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brainreg/napari/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit f23fc83

Please sign in to comment.