diff options
author | Frederick Muriuki Muriithi | 2022-02-03 05:23:24 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-02-08 10:12:27 +0300 |
commit | d037b551b7877b7611fcc161006d82e1e148d6aa (patch) | |
tree | 4019abd014686088747372e789513b191253ff5b /gn3/settings.py | |
parent | 5ca7e792083f25b487890f9f38ae57bd3f9c29c4 (diff) | |
download | genenetwork3-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.py | 2 |
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 |