diff options
author | Frederick Muriuki Muriithi | 2022-10-04 11:21:59 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-10-04 11:21:59 +0300 |
commit | 028cc01a4fa94e59e643da40f7bb0318fc4fa868 (patch) | |
tree | a2beeeea95bde240a445fd4a77021caf9451d290 | |
parent | 14a2b4012c381f548ed8c3a4f32dff6cb9e5af84 (diff) | |
download | genenetwork2-028cc01a4fa94e59e643da40f7bb0318fc4fa868.tar.gz |
Remove unnecessary variable
Just assign the value of the function call directly to the dictionary
key rather than using an intermediate variable.
-rw-r--r-- | wqflask/wqflask/correlation/show_corr_results.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/wqflask/wqflask/correlation/show_corr_results.py b/wqflask/wqflask/correlation/show_corr_results.py index 4910b0e0..7623e18e 100644 --- a/wqflask/wqflask/correlation/show_corr_results.py +++ b/wqflask/wqflask/correlation/show_corr_results.py @@ -50,13 +50,11 @@ def set_template_vars(start_vars, correlation_data): target_dataset_ob = create_dataset(correlation_data['target_dataset']) correlation_data['target_dataset'] = target_dataset_ob.as_dict() - - table_json = correlation_json_for_table(correlation_data, - correlation_data['this_trait'], - correlation_data['this_dataset'], - target_dataset_ob) - - correlation_data['table_json'] = table_json + correlation_data['table_json'] = correlation_json_for_table( + correlation_data, + correlation_data['this_trait'], + correlation_data['this_dataset'], + target_dataset_ob) if target_dataset_ob.type == "ProbeSet": filter_cols = [7, 6] |