def one_level_dict(res):
    """ Transforms nested dict to dictionary only one level deep """
    configs = []
    roots = []
    iters = []
    energies = []
    waves = []
    ints = []
    for config in res:
        for root in res[config]:
            for iteration in res[config][root]["peaks"]:
                data = res[config][root]["peaks"][iteration]
                for val in data:
                    energy, wave, intensity = val
                    configs.append(config)
                    roots.append(root)
                    iters.append(iteration)
                    energies.append(energy)
                    waves.append(wave)
                    ints.append(intensity)

    output = {}
    output["Config"] = configs
    output["Root"] = roots
    output["Iteration"] = iters
    output["Transition Energies (eV)"] = energies
    output["Wavelength (nm)"] = waves
    output["Intensity (au)"] = ints
    return output