From e3a1e51702be270a72a896704c3c8c8783caffd3 Mon Sep 17 00:00:00 2001 From: q-posev Date: Thu, 9 Dec 2021 16:15:17 +0100 Subject: [PATCH] better detailed dict --- tools/generator.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/generator.py b/tools/generator.py index f6cd9b8..fae24d4 100644 --- a/tools/generator.py +++ b/tools/generator.py @@ -16,11 +16,12 @@ detailed_dsets_nostr, detailed_dsets_str, detailed_dsets_sparse = split_dset_dic detailed_dsets = detailed_dsets_nostr.copy() detailed_dsets.update(detailed_dsets_str) # build a big dictionary with all pre-processed data -detailed_all = {} -detailed_all['datasets'] = dict(detailed_dsets_nostr, **detailed_dsets_str, **detailed_dsets_sparse) -detailed_all['groups'] = group_dict -detailed_all['numbers'] = detailed_nums -detailed_all['strings'] = detailed_strs +detailed_all = { + 'datasets' : dict(detailed_dsets_nostr, **detailed_dsets_str, **detailed_dsets_sparse), + 'groups' : group_dict, + 'numbers' : detailed_nums, + 'strings' : detailed_strs +} # consistency check for dimensioning variables check_dim_consistency(detailed_nums, dsets) # --------------------------------------------------------------------------- #