Refactor: remove name key from BC_hist_configs dictionary
This commit is contained in:
@@ -115,33 +115,31 @@ def main():
|
||||
if run_config["do_BC_hist"]:
|
||||
print("Computing BC distributions...")
|
||||
# --- Mass histogram
|
||||
hist_configs = [
|
||||
{"name": "BC_all", "flag_col": None, "flag_value": None},
|
||||
{"name": "thin", "flag_col": "cnts_thin", "flag_value": 1},
|
||||
{"name": "thin_noScatt", "flag_col": "cnts_thin_noScatt", "flag_value": 1},
|
||||
{"name": "thick", "flag_col": "cnts_thick", "flag_value": 1},
|
||||
{"name": "thick_sat", "flag_col": "cnts_thick_sat", "flag_value": 1},
|
||||
{"name": "thin_sat", "flag_col": "cnts_thin_sat", "flag_value": 1},
|
||||
{"name": "ntl_sat", "flag_col": "cnts_ntl_sat", "flag_value": 1},
|
||||
{"name": "ntl", "flag_col": "cnts_ntl", "flag_value": 1},
|
||||
BC_hist_configs = [
|
||||
{"flag_col": None, "flag_value": None},
|
||||
{"flag_col": "cnts_thin", "flag_value": 1},
|
||||
{"flag_col": "cnts_thin_noScatt", "flag_value": 1},
|
||||
{"flag_col": "cnts_thick", "flag_value": 1},
|
||||
{"flag_col": "cnts_thick_sat", "flag_value": 1},
|
||||
{"flag_col": "cnts_thin_sat", "flag_value": 1},
|
||||
{"flag_col": "cnts_ntl_sat", "flag_value": 1},
|
||||
{"flag_col": "cnts_ntl", "flag_value": 1},
|
||||
{
|
||||
"name": "extreme_positive_timelag",
|
||||
"flag_col": "cnts_extreme_positive_timelag",
|
||||
"flag_value": 1,
|
||||
},
|
||||
{
|
||||
"name": "thin_low_inc_scatt_ratio",
|
||||
"flag_col": "cnts_thin_low_inc_scatt_ratio",
|
||||
"flag_value": 1,
|
||||
},
|
||||
{"name": "thin_total", "flag_col": "cnts_thin_total", "flag_value": 1},
|
||||
{"name": "thick_total", "flag_col": "cnts_thick_total", "flag_value": 1},
|
||||
{"name": "unclassified", "flag_col": "cnts_unclassified", "flag_value": 1},
|
||||
{"flag_col": "cnts_thin_total", "flag_value": 1},
|
||||
{"flag_col": "cnts_thick_total", "flag_value": 1},
|
||||
{"flag_col": "cnts_unclassified", "flag_value": 1},
|
||||
]
|
||||
|
||||
results = []
|
||||
|
||||
for cfg_hist in hist_configs:
|
||||
for cfg_hist in BC_hist_configs:
|
||||
meta_hist = make_hist_meta(
|
||||
bin_ctrs=inc_mass_bin_ctrs,
|
||||
kind="mass",
|
||||
|
||||
Reference in New Issue
Block a user