def write_profile_fit(name, profile, file_txt):
    """Write the fitted CPMG profile."""
    file_txt.write('[{}]\n'.format(name.upper()))
    file_txt.write('# {:>17s}   {:>17s}\n'.format('NU_CPMG', 'R2'))
    for nu_cpmg, r2_cal, _r2_exp, _r2_erd, _r2_eru in sorted(zip(*profile)):
        file_txt.write('  {0:17.8e} = {1:17.8e}\n'.format(nu_cpmg, r2_cal))
    file_txt.write('\n')
