aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-10-03 09:04:03 +0300
committerFrederick Muriuki Muriithi2022-10-03 09:04:03 +0300
commit53aa084fd2c9c930ac791ee43affffb3f788547c (patch)
treedb2a73ca3e74134a38ecddf528c42813c4060dae
parenta5cfbd22ad82ff07c5e8207ce9a3d5447718f158 (diff)
downloadgenenetwork2-53aa084fd2c9c930ac791ee43affffb3f788547c.tar.gz
Bug: Don't process data for output early
* The ",".join(...) call was processing the data for output to file, way too early, which would lead to errors down the line, very far removed from the actual cause of the error.
-rw-r--r--wqflask/wqflask/correlation/pre_computes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/correlation/pre_computes.py b/wqflask/wqflask/correlation/pre_computes.py
index 330925f9..85720013 100644
--- a/wqflask/wqflask/correlation/pre_computes.py
+++ b/wqflask/wqflask/correlation/pre_computes.py
@@ -204,7 +204,7 @@ def read_text_file(sample_dict, file_path):
csv_reader = csv.reader(csv_file, delimiter=',')
_posit, sample_vals = __fetch_id_positions__(
next(csv_reader)[1:], sample_dict)
- return (sample_vals, [",".join([line[i] for i in _posit]) for line in csv_reader])
+ return (sample_vals, [[line[i] for i in _posit] for line in csv_reader])
def write_db_to_textfile(db_name, conn, text_dir=TMPDIR):