aboutsummaryrefslogtreecommitdiff
path: root/wqflask/scripts
diff options
context:
space:
mode:
authorAlexander_Kabui2023-05-16 20:42:45 +0300
committerAlexander_Kabui2023-05-16 20:42:45 +0300
commit4eb8ec62146fb7f36ee284085d580aff9cb03cef (patch)
tree1f6ef1467d3bd3fd46d51d011e0f715768b1782a /wqflask/scripts
parent45389ef219647579ddf62bfd1de1c7322ead43e2 (diff)
downloadgenenetwork2-chores/script-textfile-generator.tar.gz
modify alloaction sizechores/script-textfile-generator
Diffstat (limited to 'wqflask/scripts')
-rw-r--r--wqflask/scripts/textfiles_generator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/scripts/textfiles_generator.py b/wqflask/scripts/textfiles_generator.py
index aa8f1647..a9369a3b 100644
--- a/wqflask/scripts/textfiles_generator.py
+++ b/wqflask/scripts/textfiles_generator.py
@@ -154,7 +154,7 @@ def cache_trait_metadata(dataset_name, dataset_type, data):
if not data:
return
try:
- with lmdb.open(os.path.join(TMPDIR, f"metadata_{dataset_type}"), map_size=500971520) as env:
+ with lmdb.open(os.path.join(TMPDIR, f"metadata_{dataset_type}"), map_size=1048576000) as env:
with env.begin(write=True) as txn:
metadata = {
"data": data,
@@ -190,7 +190,7 @@ def write_strains_data(sql_uri, dataset_name: str, data, col_names):
if data == {}:
return
try:
- with lmdb.open(os.path.join(TMPDIR, "Probesets"), map_size=500971520) as env:
+ with lmdb.open(os.path.join(TMPDIR, "Probesets"), map_size=5242880000) as env:
with env.begin(write=True) as txn:
meta = {
"strain_names": col_names,