aboutsummaryrefslogtreecommitdiff
path: root/gn3/settings.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-02-03 05:23:24 +0300
committerBonfaceKilz2022-02-08 10:12:27 +0300
commitd037b551b7877b7611fcc161006d82e1e148d6aa (patch)
tree4019abd014686088747372e789513b191253ff5b /gn3/settings.py
parent5ca7e792083f25b487890f9f38ae57bd3f9c29c4 (diff)
downloadgenenetwork3-d037b551b7877b7611fcc161006d82e1e148d6aa.tar.gz
Use multiprocessing to speed up computation
This commit refactors the code to make it possible to use multiprocessing to speed up the computation of the partial correlations. The major refactor is to move the `__compute_trait_info__` function to the top-level of the module, and provide to it all the other necessary context via the new args.
Diffstat (limited to 'gn3/settings.py')
-rw-r--r--gn3/settings.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gn3/settings.py b/gn3/settings.py
index c945fbf..87e8f4b 100644
--- a/gn3/settings.py
+++ b/gn3/settings.py
@@ -57,3 +57,5 @@ GNSHARE = os.environ.get("GNSHARE", "/gnshare/gn/")
TEXTDIR = f"{GNSHARE}/web/ProbeSetFreeze_DataMatrix"
ROUND_TO = 10
+
+MULTIPROCESSOR_PROCS = 6 # Number of processes to spawn