aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorMunyoki Kilyungi2022-10-09 19:33:14 +0300
committerBonfaceKilz2022-11-10 09:00:04 +0300
commite76f723104a1c9b4e3fc0f529e890debad8584cb (patch)
tree18e6da6359cdaaab6e0c2eaf3ce8423eecff5c6f /wqflask
parenta83d95c707dbf4480a568bae4203ed5f2476cb53 (diff)
downloadgenenetwork2-e76f723104a1c9b4e3fc0f529e890debad8584cb.tar.gz
Convert monadic_dict to normal dictionaries
* wqflask/wqflask/correlation/show_corr_results.py (set_template_vars): Convert monadict_dict to a normal dictionary. (correlation_json_for_table): Ditto.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/correlation/show_corr_results.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/wqflask/correlation/show_corr_results.py b/wqflask/wqflask/correlation/show_corr_results.py
index 01772544..5da8a6b9 100644
--- a/wqflask/wqflask/correlation/show_corr_results.py
+++ b/wqflask/wqflask/correlation/show_corr_results.py
@@ -40,10 +40,10 @@ def set_template_vars(start_vars, correlation_data):
name=start_vars['trait_id'])
correlation_data['this_trait'] = jsonable(this_trait, this_dataset_ob)
- correlation_data['this_dataset'] = this_dataset_ob.as_monadic_dict()
+ correlation_data['this_dataset'] = this_dataset_ob.as_monadic_dict().data
target_dataset_ob = create_dataset(correlation_data['target_dataset'])
- correlation_data['target_dataset'] = target_dataset_ob.as_monadic_dict()
+ correlation_data['target_dataset'] = target_dataset_ob.as_monadic_dict().data
table_json = correlation_json_for_table(correlation_data,
correlation_data['this_trait'],
@@ -80,7 +80,7 @@ def correlation_json_for_table(start_vars, correlation_data, this_trait, this_da
"""
this_trait = correlation_data['this_trait']
this_dataset = correlation_data['this_dataset']
- target_dataset = target_dataset_ob.as_monadic_dict()
+ target_dataset = target_dataset_ob.as_monadic_dict().data
corr_results = correlation_data['correlation_results']
results_list = []