aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/correlation/correlation_file_generator.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/wqflask/wqflask/correlation/correlation_file_generator.py b/wqflask/wqflask/correlation/correlation_file_generator.py
index 79161f6d..401b3ba6 100644
--- a/wqflask/wqflask/correlation/correlation_file_generator.py
+++ b/wqflask/wqflask/correlation/correlation_file_generator.py
@@ -123,3 +123,26 @@ def generate_csv_file(conn,db_name,txt_dir,file_name):
except Exception as e:
raise e
+
+
+def lmdb_file_generator():
+ pass
+
+
+
+""""
+import lmdb
+import os
+import tempfile
+with tempfile.TemporaryDirectory() as tmpdirname:
+
+ tmp_file_path = os.path.join(tmpdirname,"img_lmdb")
+ breakpoint()
+ db = lmdb.open(tmp_file_path, map_size=int(1e12))
+
+ with db.begin(write=True) as in_txn:
+
+
+ db.close()
+
+"""