sum_dictionaries
esta.general.sum_dictionaries
¶
sum_dictionaries(dict1, dict2)
¶
sum values of two identical dictionaries to get a new dictionary with updated values,
NOTE: here format of the two dictionaries is as follows:
dict1 = {'freq_expt_ethene.dat': {'298.15 K': '-564.632', '500.0 K': '-565.144', '600.0 K': '-565.417', '700 K': '-565.703', '800 K': '-566.000', '900 K': '-566.308', '1000 K': '-566.626'}} dict2 = {'freq_expt_H2O.dat': {'298.15 K': '-32556.942', '500.0 K': '-32557.369', '600.0 K': '-32557.592', '700 K': '-32557.822', '800 K': '-32558.058', '900 K': '-32558.298', '1000 K': '-32558.543'}}
after addition only values in dictionary of dictionaries is updated and key in the dictionary of dictionary remain unchanged!!
author = 'sk' email = 'sonukumar.physics@gmail.com'