import json
execfile("get_master_ch_dict.py")
execfile("get_master_ch_dict_parallel.py")


# in order to read dict:
"""
this_dict_name="myname"
dict=json.load(open(this_dict_name))
"""

"""
for type in ["proton", "helium"]:

	this_dict=get_master_ch_response_dict(type)
	this_dict_name="histo_masterch_%s_dict.json"%type

	json.dump(this_dict, open(this_dict_name, "w"),indent=4,sort_keys=True) 
"""


for type in ["proton", "helium"]:

	this_dict=get_master_ch_response_dict_parallel(type)
	this_dict_name="histo_masterch_%s_parallel_dict.json"%type

	json.dump(this_dict, open(this_dict_name, "w"),indent=4,sort_keys=True) 



# just test stuff following here ;)
"""
for type  in ["proton", "helium"]:
	this_dict_name="histo_masterch_%s_dict.json"%type
	this_dict=json.load(open(this_dict_name))
	print this_dict["ecenter"]
"""