From add714e3c9f05be35e4a73cf2c35607698310ff0 Mon Sep 17 00:00:00 2001 From: chrisholder Date: Fri, 7 Mar 2025 16:13:15 +0100 Subject: [PATCH] fix --- aeon/utils/_threading.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aeon/utils/_threading.py b/aeon/utils/_threading.py index 2a6efac7af..adf32df0a6 100644 --- a/aeon/utils/_threading.py +++ b/aeon/utils/_threading.py @@ -48,7 +48,7 @@ def wrapper(*args: Any, **kwargs: Any) -> Any: if n_jobs is None and args and hasattr(args[0], "n_jobs"): # This gets n_jobs if it belongs to a object (i.e. self.n_jobs) - n_jobs = args[0]["n_jobs"] + n_jobs = args[0].n_jobs adjusted_n_jobs = check_n_jobs(n_jobs) set_num_threads(adjusted_n_jobs)