From 13190c53c2397f00aecf4b1e18e88801cf7751aa Mon Sep 17 00:00:00 2001
From: Ziqi Li <liziqi1992@gmail.com>
Date: Mon, 4 Dec 2023 14:13:34 -0500
Subject: [PATCH] Change default n_jobs to -1

---
 mgwr/gwr.py    | 4 ++--
 mgwr/sel_bw.py | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/mgwr/gwr.py b/mgwr/gwr.py
index 0c39c8d..f4eb25f 100755
--- a/mgwr/gwr.py
+++ b/mgwr/gwr.py
@@ -88,7 +88,7 @@ class GWR(GLM):
                     Names of independent variables for use in output
 
     n_jobs        : integer
-                    The number of jobs (default 1) to run in parallel. -1 means using all processors.
+                    The number of jobs (default -1) to run in parallel. -1 means using all processors.
                             
 
     Attributes
@@ -215,7 +215,7 @@ class GWR(GLM):
 
     def __init__(self, coords, y, X, bw, family=Gaussian(), offset=None,
                  sigma2_v1=True, kernel='bisquare', fixed=False, constant=True,
-                 spherical=False, hat_matrix=False, name_x=None,n_jobs=1):
+                 spherical=False, hat_matrix=False, name_x=None,n_jobs=-1):
         """
         Initialize class
         """
diff --git a/mgwr/sel_bw.py b/mgwr/sel_bw.py
index 53c0692..27d15c1 100755
--- a/mgwr/sel_bw.py
+++ b/mgwr/sel_bw.py
@@ -59,7 +59,7 @@ class Sel_BW(object):
                      True for shperical coordinates (long-lat),
                      False for projected coordinates (defalut).
     n_jobs         : integer
-                     The number of jobs (default 1) to run in parallel. -1 means using all processors.
+                     The number of jobs (default -1) to run in parallel. -1 means using all processors.
 
     Attributes
     ----------
@@ -176,7 +176,7 @@ class Sel_BW(object):
 
     def __init__(self, coords, y, X_loc, X_glob=None, family=Gaussian(),
                  offset=None, kernel='bisquare', fixed=False, multi=False,
-                 constant=True, spherical=False,n_jobs=1):
+                 constant=True, spherical=False,n_jobs=-1):
         self.coords = np.array(coords)
         self.y = y
         self.X_loc = X_loc