From 7a5f04106ba3df4f3268d56d8813105d31d66733 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Wed, 21 Jun 2023 00:06:30 +0300 Subject: code to fetch csv info --- wqflask/wqflask/correlation/pre_computes.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/wqflask/wqflask/correlation/pre_computes.py b/wqflask/wqflask/correlation/pre_computes.py index e82eb0ec..c91e3862 100644 --- a/wqflask/wqflask/correlation/pre_computes.py +++ b/wqflask/wqflask/correlation/pre_computes.py @@ -190,12 +190,18 @@ def __generate_target_name__(db_name): f"ProbeSetFreezeId_{results[0]}_{results[1]}") -def fetch_csv_info(textfile_path: str, db_target_name: str): +def fetch_csv_info(db_target_name: str, conn): """ alternative for processing csv textfiles with rust !.currently expiremental """ - raise ValueError + csv_file_path = fetch_text_file(dataset_name, conn) + if csv_file_path: + return { + "file_type": "csv", + "lmdb_target_path": "csv_file_path", + "lmdb_target_path": "", + } def fetch_lmdb_info(db_path: str, db_target_name: str): -- cgit v1.2.3