From ace3893c96cd225b447284268d54e80ebff35329 Mon Sep 17 00:00:00 2001 From: AlexanderKabui Date: Mon, 28 Nov 2022 04:43:42 +0300 Subject: this commit remove the stage for parsing rows to remove nan values * this stage is already handled by the rust code hence doing positional comparison lead to different results than expected --- wqflask/wqflask/correlation/rust_correlation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/correlation/rust_correlation.py b/wqflask/wqflask/correlation/rust_correlation.py index 06a8d944..0901886e 100644 --- a/wqflask/wqflask/correlation/rust_correlation.py +++ b/wqflask/wqflask/correlation/rust_correlation.py @@ -268,7 +268,7 @@ def __compute_sample_corr__( target_dataset.get_trait_data(list(sample_data.keys())) def __merge_key_and_values__(rows, current): - wo_nones = [value for value in current[1] if value is not None] + wo_nones = [value for value in current[1]] if len(wo_nones) > 0: return rows + [[current[0]] + wo_nones] return rows -- cgit v1.2.3